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:
parent
d3e15c7fbe
commit
2a719a52e8
1 changed files with 63 additions and 3 deletions
|
|
@ -20,6 +20,11 @@ the highlighted one. **Escape**, **Tab** or a press elsewhere shut the list with
|
|||
changing anything. Typing the start of an option's name picks it, also with the list
|
||||
shut. A dropdown inside a dialog opens above the dialog and the dialog doesn't cut it off.
|
||||
|
||||
On a narrow screen (40em or less, the one width breakpoint the UI has) the header puts
|
||||
the swarm name and its menus on one row and the nav on a second row that scrolls sideways, the
|
||||
agent icon on a card shrinks, and the state badges over a terminal stay one row that
|
||||
scrolls sideways. Nothing makes the page itself scroll sideways at 360px.
|
||||
|
||||
A dialog grows to fit its content, up to 64em or nine tenths of the window, whichever is
|
||||
smaller; short confirm dialogs stay short.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue