From ef04f351ea0e955cdcc4db101996c53f1ad1fdbd Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 18 Jul 2026 17:19:39 +0100 Subject: [PATCH] fix(ui): keep Web Awesome available-height bound in workboard listbox caps (#110788) --- ui/src/styles/workboard.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/styles/workboard.css b/ui/src/styles/workboard.css index 5b845e261218..52848d7e2b80 100644 --- a/ui/src/styles/workboard.css +++ b/ui/src/styles/workboard.css @@ -396,7 +396,9 @@ } .workboard-select::part(listbox) { - max-height: min(320px, calc(100vh - 48px)); + /* Keep Web Awesome's collision-aware bound in the cap; replacing it outright + would let the listbox overflow when the popup has little room to open. */ + max-height: min(320px, var(--auto-size-available-height, calc(100vh - 48px))); padding: 6px; border: 1px solid color-mix(in srgb, var(--border-strong) 86%, transparent); border-radius: 8px; @@ -1455,7 +1457,7 @@ } .workboard-select::part(listbox) { - max-height: min(260px, calc(100vh - 48px)); + max-height: min(260px, var(--auto-size-available-height, calc(100vh - 48px))); } .workboard-draft__meta {