Commit d151c1f
feat(web): add scroll position restoration for changelog sidebar (#2166)
* feat(web): add scroll position restoration for changelog sidebar
- Create useScrollRestoration hook for nested scrollable containers
- Apply hook to changelog sidebar to restore scroll position when navigating between versions
- TanStack Router's scrollRestoration only handles window scroll, this hook handles nested containers
Co-Authored-By: yujonglee <[email protected]>
* refactor(web): use resetScroll: false pattern for changelog navigation
- Replace custom useScrollRestoration hook with useNavigate resetScroll: false
- Follow the same pattern used in about.tsx and brand.tsx
- Remove unused useScrollRestoration hook file
- Convert Link to button with navigate for proper scroll handling
Co-Authored-By: yujonglee <[email protected]>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: yujonglee <[email protected]>1 parent 9541c6b commit d151c1f
1 file changed
+16
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
405 | 406 | | |
406 | 407 | | |
407 | 408 | | |
| |||
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
425 | 435 | | |
426 | 436 | | |
427 | 437 | | |
| |||
440 | 450 | | |
441 | 451 | | |
442 | 452 | | |
443 | | - | |
| 453 | + | |
444 | 454 | | |
445 | | - | |
446 | | - | |
447 | | - | |
| 455 | + | |
448 | 456 | | |
449 | | - | |
| 457 | + | |
450 | 458 | | |
451 | 459 | | |
452 | 460 | | |
| |||
461 | 469 | | |
462 | 470 | | |
463 | 471 | | |
464 | | - | |
| 472 | + | |
465 | 473 | | |
466 | 474 | | |
467 | 475 | | |
468 | 476 | | |
469 | 477 | | |
470 | 478 | | |
471 | 479 | | |
472 | | - | |
| 480 | + | |
473 | 481 | | |
474 | 482 | | |
475 | 483 | | |
| |||
0 commit comments