Skip to content

Commit 603c6c6

Browse files
authored
style: update highlightLayer style and align to textarea (#6648)
1 parent 2882d99 commit 603c6c6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,8 +1011,14 @@ 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+
isFocused
1015+
? "border border-vscode-focusBorder outline outline-vscode-focusBorder"
1016+
: isDraggingOver
1017+
? "border-2 border-dashed border-vscode-focusBorder"
1018+
: "border border-transparent",
1019+
isEditMode ? "pt-1.5 pb-10 px-2" : "py-1.5 px-2",
1020+
"px-[8px]",
1021+
"pr-9",
10161022
"z-10",
10171023
"forced-color-adjust-none",
10181024
)}

0 commit comments

Comments
 (0)