Commit fc63be5
feat(chat): public scrollToBottom() on ChatComponent; the stage pins through it
The scroll-to-bottom bubble's logic is promoted to a public method so hosts
that apply many messages in one pass (the stage replay seeking to a recorded
time) can re-pin once their layout settles, with the write counted as
programmatic so the chat's own scroll handler does not read it as the user
unpinning. StageMode drops its querySelector on the private .chat-scroll
class and calls the method through a view child.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent 4ad8893 commit fc63be5
4 files changed
Lines changed: 55 additions & 12 deletions
File tree
- apps/website/content/docs/chat/api
- examples/chat/angular/src/app/stage
- libs/chat/src/lib/compositions/chat
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2318 | 2318 | | |
2319 | 2319 | | |
2320 | 2320 | | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
2321 | 2327 | | |
2322 | 2328 | | |
2323 | 2329 | | |
| |||
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
282 | 281 | | |
283 | 282 | | |
284 | 283 | | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | 295 | | |
297 | 296 | | |
298 | 297 | | |
| |||
444 | 443 | | |
445 | 444 | | |
446 | 445 | | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
454 | 449 | | |
455 | 450 | | |
456 | 451 | | |
| |||
463 | 458 | | |
464 | 459 | | |
465 | 460 | | |
466 | | - | |
467 | | - | |
| 461 | + | |
468 | 462 | | |
469 | 463 | | |
470 | 464 | | |
| |||
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
810 | 819 | | |
811 | 820 | | |
812 | 821 | | |
| |||
815 | 824 | | |
816 | 825 | | |
817 | 826 | | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
818 | 831 | | |
819 | 832 | | |
820 | 833 | | |
| |||
0 commit comments