mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-20 06:51:59 +00:00
The rail's magnifier wrote size into normal flow while its rows, flex items in a scrolling column without `shrink-0`, compressed to their content the moment the list overflowed. Hovering grew the column's scrollHeight 363→378 and shifted every rib below the pointer, staling the cached centres: the centre of `m10`'s rib previewed `m12`, and a click in the gaps — half the rail's area — followed that same wrong id. Three more measurements came from different origins. The ribs' offsetParent was the absolutely positioned `nav`, not the static column, so the rail's auto-centring inherited the chevron's height (34px ≈ 3.5 ribs). `scrubTo` mapped the pointer's viewport fraction across the whole rib list, ignoring the column's own scroll, so no drag position landed on the rib under the pointer. And `currentId` came from the IntersectionObserver, whose topmost intersecting row is a rib short of the end whenever a `.steer-render` follows its response in document order while sitting inside it — the rail pointing above the end while the reader sits at the bottom. Everything that answers "which rib is the pointer on" now reads one measured layout in the column's own content space, and "you are here" is a scroll-spy over entry spans, so at the bottom current lands on the terminus. Also: a response's row mounts a frame before its first token, which labelled the rib with nothing and opened an empty preview card; ribs now name the pending state. Lighting separates the single current mark from the in-view band instead of hover replacing both. An origin rib mirrors the terminus. And the column takes one tab stop with arrow-key walking, rather than one per message — 226 stops in a 200-message thread. |
||
|---|---|---|
| .. | ||
| public | ||
| scripts | ||
| src | ||
| sw | ||
| test | ||
| babel.config.cjs | ||
| check_updates.sh | ||
| index.html | ||
| jest.config.cjs | ||
| jest.resolver.cjs | ||
| nginx.conf | ||
| package.json | ||
| postcss.config.cjs | ||
| tailwind.config.cjs | ||
| tsconfig.json | ||
| vite.config.ts | ||