Watch
0
0
Fork
You've already forked hyperhive
0

shared: a dropdown that would run past the window's right edge hangs from the right of its trigger

The state menu on an agent card that fills the width hung from the
trigger's left edge, so the window cut the list off. The list now measures
itself when it opens and flips to the trigger's right edge when it would
overflow.
This commit is contained in:
iris 2026-11-27 16:56:35 +01:00 • committed by mara
commit 608eb9dcd9

View file

@ -25,6 +25,7 @@ and **Page Down** move through the options, and **Enter**, **Space** or a press
the highlighted one. **Escape**, **Tab** or a press elsewhere shut the list without
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.
A list that would run past the window's right edge, such as an agent's state menu on a card that fills the width, opens from the right edge of its trigger instead.
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