mirror of
https://github.com/bitbaum/vitareba.git
synced 2026-12-04 04:17:20 +01:00
Found by the fleet UI audit once it started rendering more than one width
(bitbaum/fleet PR 119). The audit reported "ANMELDEN" 19px past the right edge
at 834px. Measuring the rest of the range showed 834 was the mildest point in
it, not the worst:
768px the page scrolls sideways by 49px
834px "ANMELDEN" 19px past the right edge
1000px the CTA 117px past it
1100px 17px past it
1101px 118px past it
1220px fits
The nav switched to its desktop layout at 768 and did not fit until 1220, so
it was broken across that whole range — on every tablet and on a 1152 or 1194
laptop. The cliff at 1101 is the `min-width: 768px and max-width: 1100px`
block switching off: that rule shrank padding and type to buy room back, which
bought about 100px, which was not enough at any width in its range.
So the switch moves to 1220 and that tightening block goes. Compacting a nav
until it fits is a fight with the content; showing the menu that already
exists is not. The `.nav` page gutter keeps its own 768 breakpoint — it is
spacing, not a layout switch, and it was only sharing the media query.
Nothing is lost between 768 and 1219: the mobile menu carries the section
links, the blog, and NavAuthActions with sign-in and the CTA — the same set it
has always served below 768.
Verified in a production build. At 390 / 768 / 834 / 1000 / 1100 / 1101 /
1219 / 1220 / 1280 / 1440 nothing in the nav crosses the viewport edge, and
the hamburger and the desktop links are exact inverses across 1219/1220.
verify clean: format, lint (one pre-existing unused-arg warning, unchanged),
typecheck, 1340 tests across 90 files. Build succeeds.
One note for whoever reads design-discipline.test.ts next: its raw-colour
regex matched "#119" in a CSS comment referencing a pull request, and read it
as a hex colour. Reworded here rather than changing the gate, but a hex in a
comment is not a raw colour in a stylesheet.
Claude-Session: https://claude.ai/code/session_01NkjZ1jJPhHzxAPvbSSG3wH
Co-authored-by: Claude <noreply@anthropic.com>