From be9ae9979324b95ebbaafb3a0a601ba5606d6f21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E9=98=BF=E6=B1=9F=28Relakkes?= =?UTF-8?q?=29?= Date: Mon, 6 Apr 2026 21:41:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20address=20code=20review=20findings=20?= =?UTF-8?q?=E2=80=94=20consistent=20px-3,=20rounded-lg,=20leading-[1.3]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- desktop/src/components/chat/CodeViewer.tsx | 2 +- desktop/src/components/chat/PermissionDialog.tsx | 4 ++-- desktop/src/components/chat/ToolCallBlock.tsx | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/desktop/src/components/chat/CodeViewer.tsx b/desktop/src/components/chat/CodeViewer.tsx index f75721e5..4098915e 100644 --- a/desktop/src/components/chat/CodeViewer.tsx +++ b/desktop/src/components/chat/CodeViewer.tsx @@ -67,7 +67,7 @@ export function CodeViewer({ code, language, maxLines = 20, showLineNumbers = tr )} diff --git a/desktop/src/components/chat/PermissionDialog.tsx b/desktop/src/components/chat/PermissionDialog.tsx index 7446dfd3..2097a6ef 100644 --- a/desktop/src/components/chat/PermissionDialog.tsx +++ b/desktop/src/components/chat/PermissionDialog.tsx @@ -98,7 +98,7 @@ function renderPermissionPreview(toolName: string, input: unknown) { if (toolName === 'Bash' && typeof obj.command === 'string') { return (
-
+        
           $ {obj.command}
         
@@ -209,7 +209,7 @@ export function PermissionDialog({ requestId, toolName, input, description }: Pr )} {allowRawToggle && showRaw && ( -
+          
             {rawInput}
           
)} diff --git a/desktop/src/components/chat/ToolCallBlock.tsx b/desktop/src/components/chat/ToolCallBlock.tsx index 63516c60..c826b2a0 100644 --- a/desktop/src/components/chat/ToolCallBlock.tsx +++ b/desktop/src/components/chat/ToolCallBlock.tsx @@ -110,7 +110,7 @@ function renderPreview( if (toolName === 'Bash' && typeof obj.command === 'string') { return ( -
+
$ {obj.command}
@@ -125,7 +125,7 @@ function renderPreview( const text = extractTextContent(result.content) if (text) { return ( -
) { const text = JSON.stringify(obj, null, 2) return ( -
+
Tool Input