Просмотр исходного кода

style: update highlightLayer style and align to textarea (#6648)

NaccOll 5 месяцев назад
Родитель
Сommit
603c6c6aea
1 измененных файлов с 8 добавлено и 2 удалено
  1. 8 2
      webview-ui/src/components/chat/ChatTextArea.tsx

+ 8 - 2
webview-ui/src/components/chat/ChatTextArea.tsx

@@ -1011,8 +1011,14 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
 						"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",
 					)}