Skip to content

Commit ef04f35

Browse files
authored
fix(ui): keep Web Awesome available-height bound in workboard listbox caps (#110788)
1 parent 6a85756 commit ef04f35

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎ui/src/styles/workboard.css‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,9 @@
396396
}
397397

398398
.workboard-select::part(listbox) {
399-
max-height: min(320px, calc(100vh - 48px));
399+
/* Keep Web Awesome's collision-aware bound in the cap; replacing it outright
400+
would let the listbox overflow when the popup has little room to open. */
401+
max-height: min(320px, var(--auto-size-available-height, calc(100vh - 48px)));
400402
padding: 6px;
401403
border: 1px solid color-mix(in srgb, var(--border-strong) 86%, transparent);
402404
border-radius: 8px;
@@ -1455,7 +1457,7 @@
14551457
}
14561458

14571459
.workboard-select::part(listbox) {
1458-
max-height: min(260px, calc(100vh - 48px));
1460+
max-height: min(260px, var(--auto-size-available-height, calc(100vh - 48px)));
14591461
}
14601462

14611463
.workboard-draft__meta {

0 commit comments

Comments
 (0)