Commit 473584e
fix: sidebar last items hidden behind header on scroll
Fixes #8521
The sidebar container was using `h-svh` (100svh) with `top-0`,
making it exactly viewport height but starting from the top where
the header overlaps. This caused the last sidebar items to be
clipped when scrolled down.
Changes:
- Set sidebar top to `var(--header-height)` to position it below
the header
- Set sidebar height to `calc(100svh - var(--header-height))` to
account for the header's vertical space
- Removed unnecessary `pb-[var(--header-height)]` padding from
sidebar wrapper since the container now correctly sizes itself
Co-Authored-By: Claude Opus 4.7 <[email protected]>1 parent 60aeb4b commit 473584e
2 files changed
Lines changed: 2 additions & 3 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
0 commit comments