diff --git a/.changeset/fix-model-dropdown-scrollbar.md b/.changeset/fix-model-dropdown-scrollbar.md new file mode 100644 index 00000000000..1e8bd84805d --- /dev/null +++ b/.changeset/fix-model-dropdown-scrollbar.md @@ -0,0 +1,7 @@ +--- +"kilo-code": patch +--- + +Fix double scrollbar in model dropdown and make search box sticky + +The model selection dropdown previously showed two scrollbars - one on the outer container and one on the inner items list. Additionally, the search box would scroll out of view when browsing through the model list. This fix restructures the dropdown to use a single scrollbar on the items container only, while keeping the search input sticky at the top for better usability. diff --git a/webview-ui/src/components/kilocode/chat/ModelSelector.tsx b/webview-ui/src/components/kilocode/chat/ModelSelector.tsx index dfdd2f32ef4..dcfc7bda0ba 100644 --- a/webview-ui/src/components/kilocode/chat/ModelSelector.tsx +++ b/webview-ui/src/components/kilocode/chat/ModelSelector.tsx @@ -142,7 +142,7 @@ export const ModelSelector = ({ title={t("chat:selectApiConfig")} options={options} onChange={onChange} - contentClassName="max-h-[300px] overflow-y-auto" + contentClassName="max-h-[300px]" triggerClassName={cn( "w-full text-ellipsis overflow-hidden p-0", "bg-transparent border-transparent hover:bg-transparent hover:border-transparent", diff --git a/webview-ui/src/components/ui/select-dropdown.tsx b/webview-ui/src/components/ui/select-dropdown.tsx index 78372b55682..a592b18b6a9 100644 --- a/webview-ui/src/components/ui/select-dropdown.tsx +++ b/webview-ui/src/components/ui/select-dropdown.tsx @@ -272,128 +272,127 @@ export const SelectDropdown = React.memo( align={align} sideOffset={sideOffset} container={portalContainer} - className={cn("p-0 overflow-hidden", contentClassName)}> -