Skip to content

Commit 79fd28c

Browse files
committed
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
1 parent 2882d99 commit 79fd28c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,8 +1011,8 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
10111011
"font-vscode-font-family",
10121012
"text-vscode-editor-font-size",
10131013
"leading-vscode-editor-line-height",
1014-
"py-2",
1015-
"px-[9px]",
1014+
isEditMode ? "pt-1.5 pb-10 px-2" : "py-1.5 px-2",
1015+
"pr-9",
10161016
"z-10",
10171017
"forced-color-adjust-none",
10181018
)}

0 commit comments

Comments
 (0)