Repository navigation
Commit 94b9b04
fix(web): show scroll-to-end as soon as the last message slips under the composer
Scrolling up in a thread required travelling a whole composer height before
the scroll-to-end pill appeared, because the end check subtracted the composer
inset twice: contentLength already includes the inset spacer, and the composer
covers the same amount of viewport, so the two cancel and the plain
contentLength - scroll - scrollLength gap is the real distance to the visible
edge. resolveTimelineIsAtEnd also short-circuited on LegendList's own isAtEnd,
which is true anywhere inside that composer-height band, so the pill was
suppressed even after the geometry check would have fired.
Drop the inset parameter and the flag short-circuit; the flag is now only the
fallback for state without geometry.
Co-Authored-By: Claude Code <[email protected]>1 parent 9159b80 commit 94b9b04
4 files changed
Lines changed: 22 additions & 29 deletions
File tree
- apps/web/src/components
- chat
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4219 | 4219 | | |
4220 | 4220 | | |
4221 | 4221 | | |
4222 | | - | |
4223 | | - | |
| 4222 | + | |
4224 | 4223 | | |
4225 | 4224 | | |
4226 | 4225 | | |
| |||
4299 | 4298 | | |
4300 | 4299 | | |
4301 | 4300 | | |
4302 | | - | |
| 4301 | + | |
4303 | 4302 | | |
4304 | 4303 | | |
4305 | 4304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
| 138 | + | |
142 | 139 | | |
143 | 140 | | |
144 | 141 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | 142 | | |
149 | 143 | | |
150 | 144 | | |
151 | 145 | | |
152 | | - | |
153 | | - | |
154 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
155 | 153 | | |
156 | 154 | | |
157 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
382 | | - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
383 | 384 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
389 | 392 | | |
390 | 393 | | |
391 | 394 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
| 558 | + | |
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
| 584 | + | |
592 | 585 | | |
593 | 586 | | |
594 | 587 | | |
| |||
0 commit comments