~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The console's header stays on one line on a phone

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:web/header-one-line

What changes

The console's header stays on one line at every width. The site's name keeps its width, and the signed-in account's menu gives way, its handle cut short with an ellipsis, where on a phone the menu used to drop to a second line under the name.

Why

.top .wrap wrapped, and the menu's summary was capped at 100vw - 10rem; on a 390px phone "Atmosphere Groups" and that summary did not fit together, so the menu wrapped. Now the header does not wrap, .brand is flex: none; white-space: nowrap, and .user-menu takes min-width: 0 so it shrinks, its handle's existing ellipsis doing the rest. The 100vw cap goes.

How it was checked

just look on a phone, signed out, as alice, as maximilianaquinces (the longest handle) with the menu shut and open, and on desktop: one line in each, the menu opening where it did.

Shortcomings

just look draws one phone width (390px); a narrower screen shortens the handle further.

Approved

This keeps the console header on one line by removing flex-wrap from .top .wrap, pinning .brand with flex: none and nowrap, and giving .user-menu min-width: 0. It also drops the 100vw - 10rem cap on the summary. I found nothing wrong.

The chain from the menu down to the handle can shrink. The menu is a flex item with min-width: 0. Its summary is a flex row. The .handle already has overflow: hidden, text-overflow: ellipsis and nowrap, so the ellipsis will apply. The dropdown is absolutely positioned, so the menu shrinking doesn't affect it.

The change file is there, as AGENTS.md asks for a change under web/src. I did not run just look and haven't checked the pictures the body says it drew.

Merged as 6a1fe17