Watch
0
0
Fork
You've already forked hyperhive
0

swarm ui: a narrow-screen header, a one-row terminal badge strip and no sideways page scroll at 360px

There was no width media query anywhere. At 360px the header wrapped into three rows covering a third of the screen, an agent card's trailing controls pushed the page 100px wider than the screen, and the terminal's state badges wrapped onto its first rows of text. At 40em or less the brand and the menus share the first header row, the nav is one row that scrolls sideways (its indicator accounts for the scroll), a card's header line wraps and its icon is smaller, and the state badges over a terminal are one row that scrolls sideways.
This commit is contained in:
iris 2026-11-19 19:05:19 +01:00 • committed by mara
commit 2a719a52e8

View file

@ -92,6 +92,34 @@
gap: 1em;
position: relative; /* anchor for .shell-nav-indicator */
}
/* A narrow screen (40em, the one width breakpoint the swarm UI has): the brand
and the header's menus share the first row, and the nav takes the second as
one row that scrolls sideways, instead of wrapping into two or three rows
that cover a third of a phone. */
@media (max-width: 40em) {
.shell-header {
gap: 0.25em 0.75em;
padding: 0.5em 0.75em;
}
.shell-header-actions {
order: 1;
}
.shell-nav {
order: 2;
flex: 1 0 100%;
flex-wrap: nowrap;
overflow-x: auto;
scrollbar-width: none;
}
.shell-nav::-webkit-scrollbar {
display: none;
}
.shell-nav-link,
.shell-tabs {
flex: none;
white-space: nowrap;
}
}
/* Holds `SettingsMenu` + `LinksMenu` — one `margin-left: auto` on the
wrapper, not one on each child (see Shell.tsx's comment for why two
adjacent auto margins don't sit flush together). */