Skip to content

Commit a57528d

Browse files
authored
Make chat icons shrink-0 (#8343)
1 parent 602901f commit a57528d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ export const ChatRowContent = ({
290290
)
291291
) : cost !== null && cost !== undefined ? (
292292
isExpanded ? (
293-
<ChevronDown className="w-4" />
293+
<ChevronDown className="w-4 shrink-0" />
294294
) : (
295-
<ChevronRight className="w-4" />
295+
<ChevronRight className="w-4 shrink-0" />
296296
)
297297
) : apiRequestFailedMessage ? (
298298
getIconSpan("error", errorColor)
@@ -319,7 +319,7 @@ export const ChatRowContent = ({
319319
]
320320
case "followup":
321321
return [
322-
<MessageCircleQuestionMark className="w-4" aria-label="Question icon" />,
322+
<MessageCircleQuestionMark className="w-4 shrink-0" aria-label="Question icon" />,
323323
<span style={{ color: normalColor, fontWeight: "bold" }}>{t("chat:questions.hasQuestion")}</span>,
324324
]
325325
default:
@@ -372,7 +372,7 @@ export const ChatRowContent = ({
372372
return (
373373
<>
374374
<div style={headerStyle}>
375-
<FileDiff className="w-4" aria-label="Batch diff icon" />
375+
<FileDiff className="w-4 shrink-0" aria-label="Batch diff icon" />
376376
<span style={{ fontWeight: "bold" }}>
377377
{t("chat:fileOperations.wantsToApplyBatchChanges")}
378378
</span>
@@ -561,7 +561,7 @@ export const ChatRowContent = ({
561561
return (
562562
<>
563563
<div style={headerStyle}>
564-
<Eye className="w-4" aria-label="View files icon" />
564+
<Eye className="w-4 shrink-0" aria-label="View files icon" />
565565
<span style={{ fontWeight: "bold" }}>
566566
{t("chat:fileOperations.wantsToReadMultiple")}
567567
</span>
@@ -581,7 +581,7 @@ export const ChatRowContent = ({
581581
return (
582582
<>
583583
<div style={headerStyle}>
584-
<FileCode2 className="w-4" aria-label="Read file icon" />
584+
<FileCode2 className="w-4 shrink-0" aria-label="Read file icon" />
585585
<span style={{ fontWeight: "bold" }}>
586586
{message.type === "ask"
587587
? tool.isOutsideWorkspace
@@ -606,7 +606,7 @@ export const ChatRowContent = ({
606606
</span>
607607
<div style={{ flexGrow: 1 }}></div>
608608
<SquareArrowOutUpRight
609-
className="w-4 codicon codicon-link-external opacity-0 group-hover:opacity-100 transition-opacity"
609+
className="w-4 shrink-0 codicon codicon-link-external opacity-0 group-hover:opacity-100 transition-opacity"
610610
style={{ fontSize: 13.5, margin: "1px 0" }}
611611
/>
612612
</ToolUseBlockHeader>
@@ -636,7 +636,7 @@ export const ChatRowContent = ({
636636
return (
637637
<>
638638
<div style={headerStyle}>
639-
<ListTree className="w-4" aria-label="List files icon" />
639+
<ListTree className="w-4 shrink-0" aria-label="List files icon" />
640640
<span style={{ fontWeight: "bold" }}>
641641
{message.type === "ask"
642642
? tool.isOutsideWorkspace
@@ -662,7 +662,7 @@ export const ChatRowContent = ({
662662
return (
663663
<>
664664
<div style={headerStyle}>
665-
<FolderTree className="w-4" aria-label="Folder tree icon" />
665+
<FolderTree className="w-4 shrink-0" aria-label="Folder tree icon" />
666666
<span style={{ fontWeight: "bold" }}>
667667
{message.type === "ask"
668668
? tool.isOutsideWorkspace
@@ -754,7 +754,7 @@ export const ChatRowContent = ({
754754
return (
755755
<>
756756
<div style={headerStyle}>
757-
<PocketKnife className="w-4" aria-label="Switch mode icon" />
757+
<PocketKnife className="w-4 shrink-0" aria-label="Switch mode icon" />
758758
<span style={{ fontWeight: "bold" }}>
759759
{message.type === "ask" ? (
760760
<>
@@ -1120,7 +1120,7 @@ export const ChatRowContent = ({
11201120
return (
11211121
<div>
11221122
<div style={headerStyle}>
1123-
<MessageCircle className="w-4" aria-label="Speech bubble icon" />
1123+
<MessageCircle className="w-4 shrink-0" aria-label="Speech bubble icon" />
11241124
<span style={{ fontWeight: "bold" }}>{t("chat:text.rooSaid")}</span>
11251125
</div>
11261126
<div className="pl-6">
@@ -1139,7 +1139,7 @@ export const ChatRowContent = ({
11391139
return (
11401140
<div className="group">
11411141
<div style={headerStyle}>
1142-
<User className="w-4" aria-label="User icon" />
1142+
<User className="w-4 shrink-0" aria-label="User icon" />
11431143
<span style={{ fontWeight: "bold" }}>{t("chat:feedback.youSaid")}</span>
11441144
</div>
11451145
<div
@@ -1190,7 +1190,7 @@ export const ChatRowContent = ({
11901190
e.stopPropagation()
11911191
handleEditClick()
11921192
}}>
1193-
<Edit className="w-4" aria-label="Edit message icon" />
1193+
<Edit className="w-4 shrink-0" aria-label="Edit message icon" />
11941194
</div>
11951195
<div
11961196
className="cursor-pointer shrink-0 opacity-0 group-hover:opacity-100 transition-opacity"
@@ -1199,7 +1199,7 @@ export const ChatRowContent = ({
11991199
e.stopPropagation()
12001200
vscode.postMessage({ type: "deleteMessage", value: message.ts })
12011201
}}>
1202-
<Trash2 className="w-4" aria-label="Delete message icon" />
1202+
<Trash2 className="w-4 shrink-0" aria-label="Delete message icon" />
12031203
</div>
12041204
</div>
12051205
</div>

0 commit comments

Comments
 (0)