Commit c93eddf
authored
chore(content): stop the page rail from leaking below 1280px (#1946)
The on-this-page rail rendered at every viewport width instead of only
from 1280px up, so below that tier it landed as an extra grid row under
the nav column and its sticky positioning painted the table of contents
and page actions on top of the sidebar. The rail now disappears below
1280px as intended, leaving the collapsible "On this page" disclosure as
the only table of contents there.
Introduced by #1902, which added the flex context the coffee card needs
but left it unscoped: `aside[data-blume-toc]` outranks the `hidden`
utility Blume hides the rail with.
## Fixes
- Docs and blog pages between 1024px and 1280px no longer show the rail
overlapping the sidebar, and no longer carry the 918px of dead scroll
the phantom grid row added.
- Mobile and tablet widths no longer append a full-width duplicate table
of contents and page-actions block, worth another 755px of dead scroll,
to the bottom of every page.
## Testing
Checked on `blume dev` at 375, 1023, 1210, 1279, 1280 and 1440px on both
a docs page and a blog post. Below 1280px the rail computes to `display:
none` with the grid height matching the content column exactly; from
1280px up the three-column grid, the rail's flex column and the coffee
card pinned flush to the viewport bottom are unchanged. No console
errors, no horizontal overflow at any width. A sweep of the live DOM for
other `hidden` utilities losing on specificity found none.1 parent a5689b9 commit c93eddf
1 file changed
Lines changed: 15 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
| 312 | + | |
318 | 313 | | |
319 | | - | |
320 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
321 | 328 | | |
322 | 329 | | |
323 | 330 | | |
| |||
0 commit comments