Skip to content

Commit 559eb65

Browse files
committed
Tweaks to file read tool block
1 parent debee6c commit 559eb65

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ import {
5555
Edit,
5656
Trash2,
5757
MessageCircleQuestionMark,
58+
SquareArrowOutUpRight,
59+
FileCode2,
5860
} from "lucide-react"
5961
import { cn } from "@/lib/utils"
6062

@@ -575,7 +577,7 @@ export const ChatRowContent = ({
575577
return (
576578
<>
577579
<div style={headerStyle}>
578-
{toolIcon("file-code")}
580+
<FileCode2 className="w-4" />
579581
<span style={{ fontWeight: "bold" }}>
580582
{message.type === "ask"
581583
? tool.isOutsideWorkspace
@@ -591,15 +593,16 @@ export const ChatRowContent = ({
591593
<div className="pl-6">
592594
<ToolUseBlock>
593595
<ToolUseBlockHeader
596+
className="group"
594597
onClick={() => vscode.postMessage({ type: "openFile", text: tool.content })}>
595598
{tool.path?.startsWith(".") && <span>.</span>}
596599
<span className="whitespace-nowrap overflow-hidden text-ellipsis text-left mr-2 rtl">
597600
{removeLeadingNonAlphanumeric(tool.path ?? "") + "\u200E"}
598601
{tool.reason}
599602
</span>
600603
<div style={{ flexGrow: 1 }}></div>
601-
<span
602-
className={`codicon codicon-link-external`}
604+
<SquareArrowOutUpRight
605+
className="w-4 codicon codicon-link-external opacity-0 group-hover:opacity-100 transition-opacity"
603606
style={{ fontSize: 13.5, margin: "1px 0" }}
604607
/>
605608
</ToolUseBlockHeader>

0 commit comments

Comments
 (0)