From 8807141736fecde2491180863d375cd1a50ea986 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 25 Mar 2025 12:09:19 -0700 Subject: [PATCH] small ui fixes --- .../components/modelSelection/ModelSelectionListbox.tsx | 7 +++---- gui/src/components/ui/Listbox.tsx | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gui/src/components/modelSelection/ModelSelectionListbox.tsx b/gui/src/components/modelSelection/ModelSelectionListbox.tsx index 5111a1bcc..3db8ce9c5 100644 --- a/gui/src/components/modelSelection/ModelSelectionListbox.tsx +++ b/gui/src/components/modelSelection/ModelSelectionListbox.tsx @@ -67,22 +67,21 @@ export const StyledListboxOptions = styled(ListboxOptions)` position: absolute; top: 100%; left: 0; - right: 0; margin-top: 0.25rem; + height: fit-content; max-height: 15rem; - overflow: auto; + width: 60%; border-radius: ${defaultBorderRadius}; - overflow-y: scroll; + overflow-y: auto; z-index: 10; &:focus { outline: none; } `; - export const StyledListboxOption = styled(ListboxOption)<{ selected: boolean; }>` diff --git a/gui/src/components/ui/Listbox.tsx b/gui/src/components/ui/Listbox.tsx index 034fded69..5bb235563 100644 --- a/gui/src/components/ui/Listbox.tsx +++ b/gui/src/components/ui/Listbox.tsx @@ -53,6 +53,7 @@ const ListboxOptions = React.forwardRef( border: `1px solid ${vscCommandCenterInactiveBorder}`, fontSize, borderRadius: defaultBorderRadius, + zIndex: 1000, ...props.style, }} />