Repository navigation
Commit 7a90e78
Fix mobile menu scrolling out of the viewport
The open docs menu was absolutely positioned without a height limit, and
the page kept scrolling behind it, so scrolling to reach the lower items
moved the menu and its close button out of view.
Lock page scroll and trap focus while the menu is open (as the other
header partial already does), let the menu scroll inside the space below
the header, and close it when the window grows past the lg breakpoint so
the page never stays locked on desktop.
Fixes #51
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent dd3c956 commit 7a90e78
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
144 | | - | |
| 146 | + | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| |||
0 commit comments