diff --git a/webview-ui/src/components/chat/ChatTextArea.tsx b/webview-ui/src/components/chat/ChatTextArea.tsx index fa00fc1..5776585 100644 --- a/webview-ui/src/components/chat/ChatTextArea.tsx +++ b/webview-ui/src/components/chat/ChatTextArea.tsx @@ -103,6 +103,7 @@ const ChatTextArea = forwardRef( const [intendedCursorPosition, setIntendedCursorPosition] = useState(null) const contextMenuContainerRef = useRef(null) const [isEnhancingPrompt, setIsEnhancingPrompt] = useState(false) + const [isFocused, setIsFocused] = useState(false) // Fetch git commits when Git is selected or when typing a hash useEffect(() => { @@ -379,6 +380,7 @@ const ChatTextArea = forwardRef( if (!isMouseDownOnMenu) { setShowContextMenu(false) } + setIsFocused(false) }, [isMouseDownOnMenu]) const handlePaste = useCallback( @@ -537,6 +539,10 @@ const ChatTextArea = forwardRef( backgroundColor: "var(--vscode-input-background)", margin: "10px 15px", padding: "8px", + outline: "none", + border: "1px solid", + borderColor: isFocused ? "var(--vscode-focusBorder)" : "transparent", + borderRadius: "2px", }} onDrop={async (e) => { e.preventDefault() @@ -647,6 +653,7 @@ const ChatTextArea = forwardRef( handleInputChange(e) updateHighlights() }} + onFocus={() => setIsFocused(true)} onKeyDown={handleKeyDown} onKeyUp={handleKeyUp} onBlur={handleBlur} @@ -665,6 +672,7 @@ const ChatTextArea = forwardRef( autoFocus={true} style={{ width: "100%", + outline: "none", boxSizing: "border-box", backgroundColor: "transparent", color: "var(--vscode-input-foreground)", diff --git a/webview-ui/src/components/settings/ApiOptions.tsx b/webview-ui/src/components/settings/ApiOptions.tsx index 1199914..4bdff0b 100644 --- a/webview-ui/src/components/settings/ApiOptions.tsx +++ b/webview-ui/src/components/settings/ApiOptions.tsx @@ -563,7 +563,7 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage }: ApiOptionsProps) = )} {selectedProvider === "openai" && ( -
+