Commit d0e8fe4
fix(nav): keep aux nav links single-line on narrow mobile widths (#519)
Code review of #518 found that on narrow viewports (e.g. ~280px, the
Galaxy Z Fold cover screen) or with a longer/additional aux_links
entry, the aux nav button text wraps to a second line. That grows
#main-header taller than the padding-top reserved on .site-nav, so the
fixed search box ends up overlapping the first nav item's click target
by a few pixels.
Force aux nav links to stay on a single line and scroll horizontally
instead, using the theme's own existing overflow-x: auto, so
#main-header's height (and the matching reserved padding-top) stays
constant regardless of viewport width or aux_links content.
Verified via headless Chromium at 280/320/375px widths and with a
stress-tested 4th, longer aux link: no overlap in any case.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent bc29699 commit d0e8fe4
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
| |||
0 commit comments