From 24db4556895092a923302cfb30dadcf7cb1bd2ed Mon Sep 17 00:00:00 2001 From: NaccOll Date: Mon, 4 Aug 2025 16:57:46 +0800 Subject: [PATCH] style: update highlightLayer style and align to textarea --- webview-ui/src/components/chat/ChatTextArea.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/webview-ui/src/components/chat/ChatTextArea.tsx b/webview-ui/src/components/chat/ChatTextArea.tsx index a52902f1e5..5135eca2f2 100644 --- a/webview-ui/src/components/chat/ChatTextArea.tsx +++ b/webview-ui/src/components/chat/ChatTextArea.tsx @@ -1011,8 +1011,14 @@ const ChatTextArea = forwardRef( "font-vscode-font-family", "text-vscode-editor-font-size", "leading-vscode-editor-line-height", - "py-2", - "px-[9px]", + isFocused + ? "border border-vscode-focusBorder outline outline-vscode-focusBorder" + : isDraggingOver + ? "border-2 border-dashed border-vscode-focusBorder" + : "border border-transparent", + isEditMode ? "pt-1.5 pb-10 px-2" : "py-1.5 px-2", + "px-[8px]", + "pr-9", "z-10", "forced-color-adjust-none", )}