fix(nav): stop the small-screen layout overflowing and give navigation real touch targets #170
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-web!170
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "fix/nav-small-screen"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Closes #153, closes #160, closes #155, closes #159. Refs #156.
Small-screen layout, reflow and target size. Deliberately adds no disclosure or hamburger — the
header has no JavaScript today and that is worth keeping.
Ordering was load-bearing: the row has to wrap (#153) before targets grow (#155), or the 320 px
overflow gets worse rather than better.
Reflow — measured,
scrollWidthvsclientWidth//docs//pricing//en/pricing/Zero overflow across 8 widths × 6 pages. 768 px and above is unchanged.
A second overflow source only became visible once the first was fixed: at 320 px the
Dokumentationheading is 321 px in a 272 px column. Fixed with
overflow-wrap: break-wordon headings.#160 restacks the add-ons table below
smallrather than adding a scroller — each cell carriesits column heading as a visible label and
theadis dropped, so there is no unlabelled tab stop.#155 gives every header, footer and breadcrumb target 48 px on the block axis, honouring
--min-touch-target, which the repo already applies to buttons and the logo but to no navigationlink. It previously passed SC 2.5.8 only through the spacing exception — compliance that breaks the
moment any gap is tightened.
#159 adds
env(safe-area-inset-*)behind@supports. Verified with CDPEmulation.setSafeAreaInsetsOverrideat 780×375 landscape: link boxes moved from30..750— twelvelinks inside the 44 px notch band — to
74..706, none inside. Values are byte-identical where noinsets exist.
#156 is partial, and deliberately so
Header height at 375 px: 278 baseline → 210. The issue asks for ≤170 px, which is not reachable
while every target is 48 px. The header is now three rows — brand band plus two navigation rows —
which is 144 px of targets; the remaining 66 px is padding and gaps. Reaching 170 means cutting
~40 px more of padding (brand 32→8, nav 16→8, gap 16→8), which is a visual-density decision rather
than a layout one.
Per the operator decision, the small-screen logo now matches the footer's 24 px, which is what
freed the third row.
#156stays open for the padding question.Verification
pnpm lint,pnpm check,pnpm test(206 passing).src/lib/nav.test.tsuntouched;aria-current="page"still marks the current page in both languages.45c61631b6958050d3f5958050d3f5316f645a45