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.
Цей коміт міститься в:
l0ng-ai committed 2026-11-23 19:26:57 +08:00
1 джерело 0fdf37f1bf
коміт e5889a3bc4
1 file changed
+8
+8
Переглянути файл
@@ -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;