diff --git a/webview-ui/src/components/chat/BatchFilePermission.tsx b/webview-ui/src/components/chat/BatchFilePermission.tsx index 5bb5d754ccdd..9f23d0fb9c2d 100644 --- a/webview-ui/src/components/chat/BatchFilePermission.tsx +++ b/webview-ui/src/components/chat/BatchFilePermission.tsx @@ -3,6 +3,7 @@ import { memo } from "react" import { ToolUseBlock, ToolUseBlockHeader } from "../common/ToolUseBlock" import { vscode } from "@src/utils/vscode" import { removeLeadingNonAlphanumeric } from "@src/utils/removeLeadingNonAlphanumeric" +import { StandardTooltip } from "../ui/standard-tooltip" interface FilePermissionItem { path: string @@ -35,10 +36,12 @@ export const BatchFilePermission = memo(({ files = [], onPermissionResponse, ts vscode.postMessage({ type: "openFile", text: file.content })}> {file.path?.startsWith(".") && .} - - {removeLeadingNonAlphanumeric(file.path ?? "") + "\u200E"} - {file.lineSnippet && ` ${file.lineSnippet}`} - + + + {removeLeadingNonAlphanumeric(file.path ?? "") + "\u200E"} + {file.lineSnippet && ` ${file.lineSnippet}`} + +
diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 26bc71074adb..c32cd5ebfca1 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -63,6 +63,7 @@ import { MessageCircle, } from "lucide-react" import { cn } from "@/lib/utils" +import { StandardTooltip } from "../ui/standard-tooltip" interface ChatRowProps { message: ClineMessage @@ -600,10 +601,12 @@ export const ChatRowContent = ({ className="group" onClick={() => vscode.postMessage({ type: "openFile", text: tool.content })}> {tool.path?.startsWith(".") && .} - - {removeLeadingNonAlphanumeric(tool.path ?? "") + "\u200E"} - {tool.reason} - + + + {removeLeadingNonAlphanumeric(tool.path ?? "") + "\u200E"} + {tool.reason} + +
- {header} + + {header} + ) : isFeedback ? (
@@ -56,9 +59,11 @@ const CodeAccordian = ({ ) : ( <> {path?.startsWith(".") && .} - - {removeLeadingNonAlphanumeric(path ?? "") + "\u200E"} - + + + {removeLeadingNonAlphanumeric(path ?? "") + "\u200E"} + + )}