Skip to content

Commit a406de4

Browse files
committed
Tweak min-width
1 parent 6253a3c commit a406de4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ export const AutoApproveDropdown = ({ disabled = false, triggerClassName = "" }:
167167
: "opacity-90 hover:opacity-100 hover:bg-[rgba(255,255,255,0.03)] hover:border-[rgba(255,255,255,0.15)] cursor-pointer",
168168
triggerClassName,
169169
)}>
170-
<CheckCheck className="size-3" />
171-
<span className="truncate">
170+
<CheckCheck className="size-3 flex-shrink-0" />
171+
<span className="truncate min-w-0">
172172
{enabledCount === totalCount
173173
? t("chat:autoApprove.triggerLabelAll")
174174
: t("chat:autoApprove.triggerLabel", { count: enabledCount })}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ export const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
11001100
</StandardTooltip>
11011101
</div>
11021102

1103-
<div className="absolute bottom-2 right-2 z-30">
1103+
<div className="absolute bottom-2 right-2 z-30 flex items-center gap-1">
11041104
{isEditMode && (
11051105
<StandardTooltip content={t("chat:cancel.title")}>
11061106
<button
@@ -1175,12 +1175,12 @@ export const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
11751175
)}
11761176

11771177
<div className="flex items-center gap-2">
1178-
<div className="flex items-center gap-2 min-w-40 overflow-clip flex-1">
1178+
<div className="flex items-center gap-2 min-w-0 overflow-clip flex-1">
11791179
<ModeSelector
11801180
value={mode}
11811181
title={t("chat:selectMode")}
11821182
onChange={handleModeChange}
1183-
triggerClassName="min-w-20 text-ellipsis overflow-hidden"
1183+
triggerClassName="text-ellipsis overflow-hidden flex-shrink-0"
11841184
modeShortcutText={modeShortcutText}
11851185
customModes={customModes}
11861186
customModePrompts={customModePrompts}
@@ -1191,12 +1191,12 @@ export const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
11911191
disabled={selectApiConfigDisabled}
11921192
title={t("chat:selectApiConfig")}
11931193
onChange={handleApiConfigChange}
1194-
triggerClassName="min-w-13 text-ellipsis overflow-hidden"
1194+
triggerClassName="min-w-[28px] text-ellipsis overflow-hidden flex-shrink"
11951195
listApiConfigMeta={listApiConfigMeta || []}
11961196
pinnedApiConfigs={pinnedApiConfigs}
11971197
togglePinnedApiConfig={togglePinnedApiConfig}
11981198
/>
1199-
<AutoApproveDropdown triggerClassName="min-w-20 text-ellipsis overflow-hidden" />
1199+
<AutoApproveDropdown triggerClassName="min-w-[28px] text-ellipsis overflow-hidden flex-shrink" />
12001200
</div>
12011201
<div className="flex flex-shrink-0 items-center gap-0.5">
12021202
{isTtsPlaying && (

0 commit comments

Comments
 (0)