This commit is contained in:
1 parent
75e3b9116d
commit
031da29a57
1 file changed
+5
-2
@@ -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)}>
|
||||
|
||||
Reference in new issue
Block a user