Commit da5261a
feat(home): let the NogglesRail globe span the full viewport on desktop
The globe and its detail panel were capped at 1152px by the layout's centred
`max-w-6xl` main, leaving most of a wide screen empty on the section that is
meant to read as a world map. From lg up the block now breaks out of the shell
and tracks the viewport (1232px at 1280, 2512px at 2560). The section heading
stays in the shell. Below lg nothing changes: the grid is single-column there
and a full-width globe on a phone buys nothing.
Breaking out needs `w-screen`, and `100vw` counts the scrollbar, so the block
overshot the usable width by exactly one scrollbar and let the whole page be
dragged 9px sideways. Fixing that took two rules that only work together:
`overflow-y: auto` on html to stop the root's overflow being propagated from
body to the viewport, and `overflow-x: clip` on body, which does nothing on its
own while that propagation is in effect. Verified the obvious single-rule
attempts first — `clip` and `hidden` on html both still scrolled 9px.
`clip` and not `hidden` so body never becomes a scroll container and the sticky
site header keeps working; `auto` and not `scroll` so platforms that draw a
scrollbar don't get a permanent one on every page.
Side effect worth knowing: this also absorbs a pre-existing ~8px mobile
overflow coming from a rider card in the stake carousel. The card still
overflows its row — the page just no longer scrolls sideways because of it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent be4a316 commit da5261a
2 files changed
Lines changed: 42 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
121 | 145 | | |
122 | 146 | | |
| 147 | + | |
123 | 148 | | |
124 | 149 | | |
125 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| 38 | + | |
36 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
37 | 52 | | |
38 | 53 | | |
39 | 54 | | |
| |||
0 commit comments