summaryrefslogtreecommitdiff
path: root/extension/react-app/src/components/ComboBox.tsx
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-07-25 19:12:41 -0700
committerTy Dunn <ty@tydunn.com>2023-07-25 19:12:41 -0700
commit173b1a766598c3ccf9a9aa9bf87ea25e6de67e5b (patch)
treefa6b74855e69f86bf018a280e4b82965154170b9 /extension/react-app/src/components/ComboBox.tsx
parent47c9bfb963022a219ab9b72cb0561d2fd0c28552 (diff)
parent4258ba75380e0c0c43e81151f2a9e530c20448bb (diff)
downloadsncontinue-173b1a766598c3ccf9a9aa9bf87ea25e6de67e5b.tar.gz
sncontinue-173b1a766598c3ccf9a9aa9bf87ea25e6de67e5b.tar.bz2
sncontinue-173b1a766598c3ccf9a9aa9bf87ea25e6de67e5b.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.tsx17
1 files changed, 6 insertions, 11 deletions
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx
index 1e2ca135..bf07cb93 100644
--- a/extension/react-app/src/components/ComboBox.tsx
+++ b/extension/react-app/src/components/ComboBox.tsx
@@ -68,7 +68,7 @@ const Ul = styled.ul<{
${(props) =>
props.showAbove
? `transform: translateY(-${props.ulHeightPixels + 8}px);`
- : `transform: translateY(${2 * mainInputFontSize}px);`}
+ : `transform: translateY(${5 * mainInputFontSize}px);`}
position: absolute;
background: ${vscBackground};
color: ${vscForeground};
@@ -79,15 +79,9 @@ const Ul = styled.ul<{
padding: 0;
${({ hidden }) => hidden && "display: none;"}
border-radius: ${defaultBorderRadius};
- outline: 0.5px solid gray;
+ outline: 1px solid ${lightGray};
z-index: 2;
- // Get rid of scrollbar and its padding
- scrollbar-width: none;
-ms-overflow-style: none;
- &::-webkit-scrollbar {
- width: 0px;
- background: transparent; /* make scrollbar transparent */
- }
`;
const Li = styled.li<{
@@ -95,14 +89,15 @@ const Li = styled.li<{
selected: boolean;
isLastItem: boolean;
}>`
- background-color: ${vscBackground};
- ${({ highlighted }) => highlighted && "background: #ff000066;"}
+ background-color: ${({ highlighted }) =>
+ highlighted ? lightGray : secondaryDark};
+ ${({ highlighted }) => highlighted && `background: ${vscBackground};`}
${({ selected }) => selected && "font-weight: bold;"}
padding: 0.5rem 0.75rem;
display: flex;
flex-direction: column;
${({ isLastItem }) => isLastItem && "border-bottom: 1px solid gray;"}
- border-top: 1px solid gray;
+ /* border-top: 1px solid gray; */
cursor: pointer;
`;