From 79fd28c055ebcb7e8cfa93e5a4c040cd57496c18 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Mon, 4 Aug 2025 09:09:20 +0000 Subject: [PATCH] fix: align highlight layer with textarea to fix misalignment issue - Match padding values between highlight layer and textarea - Use same padding logic for edit mode (pt-1.5 pb-10 px-2) and normal mode (py-1.5 px-2) - Add pr-9 to highlight layer to match textarea right padding - Fixes #6647 --- webview-ui/src/components/chat/ChatTextArea.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webview-ui/src/components/chat/ChatTextArea.tsx b/webview-ui/src/components/chat/ChatTextArea.tsx index a52902f1e5..9afe4b9901 100644 --- a/webview-ui/src/components/chat/ChatTextArea.tsx +++ b/webview-ui/src/components/chat/ChatTextArea.tsx @@ -1011,8 +1011,8 @@ const ChatTextArea = forwardRef( "font-vscode-font-family", "text-vscode-editor-font-size", "leading-vscode-editor-line-height", - "py-2", - "px-[9px]", + isEditMode ? "pt-1.5 pb-10 px-2" : "py-1.5 px-2", + "pr-9", "z-10", "forced-color-adjust-none", )}