diff --git a/webview-ui/src/components/chat/ApiConfigSelector.tsx b/webview-ui/src/components/chat/ApiConfigSelector.tsx index e370296ec3..1898321fd4 100644 --- a/webview-ui/src/components/chat/ApiConfigSelector.tsx +++ b/webview-ui/src/components/chat/ApiConfigSelector.tsx @@ -167,11 +167,11 @@ export const ApiConfigSelector = ({ align="start" sideOffset={4} container={portalContainer} - className="p-0 overflow-hidden w-[300px]"> -
+ className="p-0 overflow-hidden w-[300px] max-h-[var(--radix-popover-content-available-height,80vh)]"> +
{/* Search input or info blurb */} {listApiConfigMeta.length > 6 ? ( -
+
) : ( -
+

{t("prompts:apiConfiguration.select")}

@@ -201,7 +201,7 @@ export const ApiConfigSelector = ({ {filteredConfigs.length === 0 && searchValue ? (
{t("common:ui.no_results")}
) : ( -
+
{/* Pinned configs - sticky header */} {pinnedConfigs.length > 0 && (
+