Repository navigation
Commit 1ea8476
fix(web): timeline rows reach the DOM in order before the first paint
LegendList sorted row elements into item order on a 500ms timer, so after a
reload or thread switch the browser painted rows out of order first. The pinned
first message got its container after the rows at the end, so its element sat
after them. NVDA's browse mode keeps the order it reads first, and wrapping
landed mid-thread.
The list now bumps a counter whenever a row takes a new item or index, and
sorts the rows in a layout effect on that counter, before the browser paints.
Only the react builds change; mobile's list is unchanged.
Co-authored-by: nibarAhmed <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 67885e8 commit 1ea8476
3 files changed
Lines changed: 304 additions & 23 deletions
File tree
- apps/web/src/components/chat
- patches
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
228 | 269 | | |
229 | 270 | | |
230 | 271 | | |
| |||
0 commit comments