1
0
mirror of https://github.com/element-hq/element-web.git synced 2026-10-24 23:19:26 +03:00
Files
element-web/patches/@tanstack__virtual-core@3.patch
David Langley cfeb5e67ae Keep the new timeline at the bottom when its viewport changes height (#35374)
When the new timeline's scroller shrinks (a banner appears, the composer
grows, the window is resized), the browser keeps `scrollTop`, so a reader at
the bottom was left with the newest messages below the fold. Rows whose height
follows the window, such as collapsed code blocks, made window resizes lose
the bottom even with a resize handler in the view, because TanStack
compensated them before the handler ran.

The fix is a new hunk in our @tanstack/virtual-core patch rather than code in
TimelineView: an end-anchored list now keeps an end-pinned view pinned when
its scroll element shrinks, the same way it already does when a row grows.
It is proposed upstream to TanStack Virtual and can be dropped once released.
The rest of the patch is unchanged.
2026-10-07 23:06:20 +00:00

8.2 KiB