From e5889a3bc41f3c868ef93ddbf2705ee5a65a757d Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Mon, 23 Nov 2026 19:26:57 +0800 Subject: [PATCH] fix(run): scroll configuration choosers to their last item in short windows When the window caps the height of Add New Configuration or the run configuration chooser, the list kept the height of its full-size viewport (WebKit resolves its 100% height against the viewport's specified height), so the bottom of the list sat below the popup's edge and its last items could not be scrolled into view. The list now fills the viewport as a flex item and scrolls within the space that is left. --- src/features/run/Run.module.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/features/run/Run.module.css b/src/features/run/Run.module.css index 35dccaf155..9afb904ef8 100644 --- a/src/features/run/Run.module.css +++ b/src/features/run/Run.module.css @@ -487,9 +487,17 @@ padding: 6px 8px; border-bottom: 1px solid var(--border-popup); } +/* The list fills what is left of the viewport once the popup is capped by the window, not its full height. */ .chooserViewport { + display: flex; + flex-direction: column; min-height: 0; } +.chooserViewport > .chooserList { + flex: 1 1 auto; + min-height: 0; + height: auto; +} .chooserList { height: 100%; overflow-x: hidden;