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
|
|
@ -30,6 +30,10 @@
|
|||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-pop);
|
||||
}
|
||||
.ui-dropdown-end {
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
.ui-dropdown-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
|
|||
Loading…
Reference in a new issue