Skip to content

Commit 9c76cbd

Browse files
author
Sebastian Sassi
committed
bring back api configurations.
1 parent 94d088b commit 9c76cbd

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

webview-ui/src/components/chat/ApiConfigSelector.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const ApiConfigSelector = ({
9595
"px-3 py-1.5 text-sm cursor-pointer flex items-center group",
9696
"hover:bg-vscode-list-hoverBackground",
9797
isCurrentConfig &&
98-
"bg-vscode-list-activeSelectionBackground text-vscode-list-activeSelectionForeground",
98+
"bg-vscode-list-activeSelectionBackground text-vscode-list-activeSelectionForeground",
9999
)}>
100100
<span className="flex-1 truncate">{config.name}</span>
101101
<div className="flex items-center gap-1">
@@ -214,7 +214,7 @@ export const ApiConfigSelector = ({
214214
</div>
215215

216216
{/* Bottom bar with buttons on left and title on right */}
217-
<div className="flex flex-row items-center justify-between p-2 border-t border-vscode-dropdown-border">
217+
{/* <div className="flex flex-row items-center justify-between p-2 border-t border-vscode-dropdown-border">
218218
<div className="flex flex-row gap-1">
219219
<IconButton
220220
iconClass="codicon-settings-gear"
@@ -223,7 +223,7 @@ export const ApiConfigSelector = ({
223223
/>
224224
</div>
225225
226-
{/* Info icon and title on the right with matching spacing */}
226+
227227
<div className="flex items-center gap-1 pr-1">
228228
{listApiConfigMeta.length > 6 && (
229229
<StandardTooltip content={t("prompts:apiConfiguration.select")}>
@@ -234,7 +234,7 @@ export const ApiConfigSelector = ({
234234
{t("prompts:apiConfiguration.title")}
235235
</h4>
236236
</div>
237-
</div>
237+
</div> */}
238238
</div>
239239
</PopoverContent>
240240
</Popover>

webview-ui/src/components/chat/ChatTextArea.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
922922
<div className="shrink-0">{renderModeSelector()}</div>
923923

924924
<div className={cn("flex-1", "min-w-0", "overflow-hidden")}>
925-
{/* <ApiConfigSelector
925+
<ApiConfigSelector
926926
value={currentConfigId}
927927
displayName={displayName}
928928
disabled={selectApiConfigDisabled}
@@ -932,7 +932,7 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
932932
listApiConfigMeta={listApiConfigMeta || []}
933933
pinnedApiConfigs={pinnedApiConfigs}
934934
togglePinnedApiConfig={togglePinnedApiConfig}
935-
/> */}
935+
/>
936936
</div>
937937
</div>
938938

@@ -975,7 +975,7 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
975975
"active:bg-[rgba(255,255,255,0.1)]",
976976
!shouldDisableImages && "cursor-pointer",
977977
shouldDisableImages &&
978-
"opacity-40 cursor-not-allowed grayscale-[30%] hover:bg-transparent hover:border-[rgba(255,255,255,0.08)] active:bg-transparent",
978+
"opacity-40 cursor-not-allowed grayscale-[30%] hover:bg-transparent hover:border-[rgba(255,255,255,0.08)] active:bg-transparent",
979979
"mr-1",
980980
)}>
981981
<Image className="w-4 h-4" />

0 commit comments

Comments
 (0)