Skip to content

Commit

Permalink
Fix: Context mentions menu is not legible with light+ theme (cline#745)…
Browse files Browse the repository at this point in the history
… (cline#942)
  • Loading branch information
XcantloadX authored Dec 22, 2024
1 parent 75e3b91 commit 031da29
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions webview-ui/src/components/chat/ContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,17 @@ const ContextMenu: React.FC<ContextMenuProps> = ({
style={{
padding: "8px 12px",
cursor: isOptionSelectable(option) ? "pointer" : "default",
color: "var(--vscode-dropdown-foreground)",
color:
index === selectedIndex && isOptionSelectable(option)
? "var(--vscode-quickInputList-focusForeground)"
: "",
borderBottom: "1px solid var(--vscode-editorGroup-border)",
display: "flex",
alignItems: "center",
justifyContent: "space-between",
backgroundColor:
index === selectedIndex && isOptionSelectable(option)
? "var(--vscode-list-activeSelectionBackground)"
? "var(--vscode-quickInputList-focusBackground)"
: "",
}}
onMouseEnter={() => isOptionSelectable(option) && setSelectedIndex(index)}>
Expand Down

0 comments on commit 031da29

Please sign in to comment.