Skip to content

Commit de12943

Browse files
committed
More subtle <code> blocks in titles
1 parent c01f3cf commit de12943

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ export const ChatRowContent = ({
721721
? "chat:directoryOperations.wantsToSearchOutsideWorkspace"
722722
: "chat:directoryOperations.wantsToSearch"
723723
}
724-
components={{ code: <code>{tool.regex}</code> }}
724+
components={{ code: <code className="font-medium">{tool.regex}</code> }}
725725
values={{ regex: tool.regex }}
726726
/>
727727
) : (
@@ -731,7 +731,7 @@ export const ChatRowContent = ({
731731
? "chat:directoryOperations.didSearchOutsideWorkspace"
732732
: "chat:directoryOperations.didSearch"
733733
}
734-
components={{ code: <code>{tool.regex}</code> }}
734+
components={{ code: <code className="font-medium">{tool.regex}</code> }}
735735
values={{ regex: tool.regex }}
736736
/>
737737
)}
@@ -759,13 +759,13 @@ export const ChatRowContent = ({
759759
{tool.reason ? (
760760
<Trans
761761
i18nKey="chat:modes.wantsToSwitchWithReason"
762-
components={{ code: <code>{tool.mode}</code> }}
762+
components={{ code: <code className="font-medium">{tool.mode}</code> }}
763763
values={{ mode: tool.mode, reason: tool.reason }}
764764
/>
765765
) : (
766766
<Trans
767767
i18nKey="chat:modes.wantsToSwitch"
768-
components={{ code: <code>{tool.mode}</code> }}
768+
components={{ code: <code className="font-medium">{tool.mode}</code> }}
769769
values={{ mode: tool.mode }}
770770
/>
771771
)}
@@ -775,13 +775,13 @@ export const ChatRowContent = ({
775775
{tool.reason ? (
776776
<Trans
777777
i18nKey="chat:modes.didSwitchWithReason"
778-
components={{ code: <code>{tool.mode}</code> }}
778+
components={{ code: <code className="font-medium">{tool.mode}</code> }}
779779
values={{ mode: tool.mode, reason: tool.reason }}
780780
/>
781781
) : (
782782
<Trans
783783
i18nKey="chat:modes.didSwitch"
784-
components={{ code: <code>{tool.mode}</code> }}
784+
components={{ code: <code className="font-medium">{tool.mode}</code> }}
785785
values={{ mode: tool.mode }}
786786
/>
787787
)}
@@ -1139,7 +1139,7 @@ export const ChatRowContent = ({
11391139
"ml-6 border rounded-sm overflow-hidden whitespace-pre-wrap",
11401140
isEditing
11411141
? "bg-vscode-editor-background text-vscode-editor-foreground"
1142-
: "cursor-text p-1 bg-vscode-editor-foreground text-vscode-editor-background",
1142+
: "cursor-text p-1 bg-vscode-editor-foreground/70 text-vscode-editor-background",
11431143
)}>
11441144
{isEditing ? (
11451145
<div className="flex flex-col gap-2">

0 commit comments

Comments
 (0)