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, }} />