summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/ComboBox.tsx
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-07-17 15:31:18 -0500
committerTy Dunn <ty@tydunn.com>2023-07-17 15:31:18 -0500
commitd0dc7811eb71d9d53055a1aa684827502748b794 (patch)
treec86a207d8f0fd2f6e697792df9fc04216f77358b /extension/react-app/src/components/ComboBox.tsx
parent690c2c756489008f4b430708423b4ca3f2c7f903 (diff)
parent6b708464d76a92e12dac40081cc51ba35f7fc0d0 (diff)
downloadsncontinue-d0dc7811eb71d9d53055a1aa684827502748b794.tar.gz
sncontinue-d0dc7811eb71d9d53055a1aa684827502748b794.tar.bz2
sncontinue-d0dc7811eb71d9d53055a1aa684827502748b794.zip
Merge branch 'main' of github.com:continuedev/continue
Diffstat (limited to 'extension/react-app/src/components/ComboBox.tsx')
-rw-r--r--extension/react-app/src/components/ComboBox.tsx10
1 files changed, 7 insertions, 3 deletions
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx
index 8136399a..f327e3a3 100644
--- a/extension/react-app/src/components/ComboBox.tsx
+++ b/extension/react-app/src/components/ComboBox.tsx
@@ -6,6 +6,7 @@ import {
lightGray,
secondaryDark,
vscBackground,
+ vscForeground,
} from ".";
import CodeBlock from "./CodeBlock";
import PillButton from "./PillButton";
@@ -48,7 +49,7 @@ const MainTextInput = styled.textarea`
height: auto;
width: 100%;
background-color: ${secondaryDark};
- color: white;
+ color: ${vscForeground};
z-index: 1;
border: 1px solid transparent;
@@ -71,7 +72,7 @@ const Ul = styled.ul<{
position: absolute;
background: ${vscBackground};
background-color: ${secondaryDark};
- color: white;
+ color: ${vscForeground};
max-height: ${UlMaxHeight}px;
width: calc(100% - 16px);
overflow-y: scroll;
@@ -95,6 +96,7 @@ const Li = styled.li<{
selected: boolean;
isLastItem: boolean;
}>`
+ background-color: ${secondaryDark};
${({ highlighted }) => highlighted && "background: #ff000066;"}
${({ selected }) => selected && "font-weight: bold;"}
padding: 0.5rem 0.75rem;
@@ -218,7 +220,9 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => {
? "Editing such a large range may be slow"
: undefined
}
- onlyShowDelete={highlightedCodeSections.length <= 1}
+ onlyShowDelete={
+ highlightedCodeSections.length <= 1 || section.editing
+ }
editing={section.editing}
pinned={section.pinned}
index={idx}