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:
parent
dd17b20dac
commit
608eb9dcd9
1 changed files with 46 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue