From 63787d1f7b5c37e461837aaaf843c54283ca4726 Mon Sep 17 00:00:00 2001 From: Prathmesh Vhatkar Date: Sun, 26 Jan 2025 18:00:10 +0530 Subject: [PATCH] fix:Added correct styling for the select options --- .../src/components/chat/ChatTextArea.tsx | 35 +++++++++++++------ 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/webview-ui/src/components/chat/ChatTextArea.tsx b/webview-ui/src/components/chat/ChatTextArea.tsx index fc4e70e..834e10b 100644 --- a/webview-ui/src/components/chat/ChatTextArea.tsx +++ b/webview-ui/src/components/chat/ChatTextArea.tsx @@ -511,6 +511,11 @@ const ChatTextArea = forwardRef( appearance: "none" as const, } + const optionStyle = { + backgroundColor: "var(--vscode-dropdown-background)", + color: "var(--vscode-dropdown-foreground)", + } + const caretContainerStyle = { position: "absolute" as const, left: 6, @@ -731,20 +736,21 @@ const ChatTextArea = forwardRef( flex: "0 0 auto", }}> {getAllModes(customModes).map((mode) => ( - ))} - - +
@@ -790,10 +796,17 @@ const ChatTextArea = forwardRef( {config.name} ))} - - +