app: the navbar corner wrapped onto a second row on small phones (#672)

* app: the navbar corner wrapped onto a second row on small phones

Every status-icon slot carried a 1.5em separator margin -- ~80px across
three slots -- which wrapped the mobile bar's whole corner onto a second
row on any screen narrower than about 380px. The margin is now 0.25em on
both bars: the corner's gap and the slots' own padding still space the
icons, and on desktop the freed room just goes back to the links that
useOverflowNav folds into "More".

The mobile bar is extracted as MobileNav (mirroring DesktopNav) so a
Cypress suite can mount it and hold it to one row at phone widths.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* review: prove 320px with a faithful fixture, trim the CSS narration

The suite claimed 360px covered narrower devices because the fixture was
wider than production, but the fixture also lacked the real theme
toggle's 0.8em right margin, so the safety margin was overstated. The
fixture now matches a phone -- 32px logo home link, the toggle's margin,
and a coarse pointer so the search link drops its keyboard hint, with a
test asserting the hint is really absent -- and 320px is measured
directly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
lrnselfreliance 2026-08-20 18:37:23 -06:00 • committed by GitHub
parent 42595400b4
commit e66e1e9309
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 131 additions and 10 deletions

View file

@ -143,7 +143,9 @@ html .wrolpi-navbar .mantine-ActionIcon-root:hover {
.wrolpi-navbar-icon {
display: flex;
align-items: center;
margin-left: 1.5em;
/* A sliver only: the corner's gap and the slots' own padding already separate the
icons, and anything more has to fit a 320px phone times the number of slots. */
margin-left: 0.25em;
/* Full bar height, so the anchor inside has somewhere to stretch to. */
align-self: stretch;
}