Commit abe624e
docs: fix API docs sidebar overscroll from topbar offset (#49)
Scalar's --scalar-y-offset shifts the sidebar's top position below
the WarpTopbar, but doesn't reduce the sidebar's total height. This
caused the sidebar to extend past the viewport bottom by exactly
the topbar height (3.5rem mobile / 4rem desktop), producing a
slight overscroll at the top and bottom of the main scroll area.
Fix: add max-height: calc(100vh - var(--warp-topbar-height)) to the
.sidebar class in the Scalar customCss block.
Co-authored-by: Oz <oz-agent@warp.dev>1 parent 62fd5fa commit abe624e
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
295 | 303 | | |
296 | 304 | | |
297 | 305 | | |
| |||
0 commit comments