diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-25 17:30:12 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-25 17:30:12 -0700 |
commit | 2375ca5ff9b054d5128d5e4fc8507f925b25aebf (patch) | |
tree | e51759a2f1ef9d1fcf2d8a046e788dbd803a759d /extension/react-app/src/components | |
parent | 509d6c22805675a21aeaa15187223ede705b3819 (diff) | |
download | sncontinue-2375ca5ff9b054d5128d5e4fc8507f925b25aebf.tar.gz sncontinue-2375ca5ff9b054d5128d5e4fc8507f925b25aebf.tar.bz2 sncontinue-2375ca5ff9b054d5128d5e4fc8507f925b25aebf.zip |
updating ui to match config-py branch
Diffstat (limited to 'extension/react-app/src/components')
-rw-r--r-- | extension/react-app/src/components/ComboBox.tsx | 17 | ||||
-rw-r--r-- | extension/react-app/src/components/ContinueButton.tsx | 5 |
2 files changed, 9 insertions, 13 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; `; diff --git a/extension/react-app/src/components/ContinueButton.tsx b/extension/react-app/src/components/ContinueButton.tsx index d7739b20..6d753988 100644 --- a/extension/react-app/src/components/ContinueButton.tsx +++ b/extension/react-app/src/components/ContinueButton.tsx @@ -26,7 +26,8 @@ function ContinueButton(props: { onClick?: () => void; hidden?: boolean }) { return ( <StyledButton hidden={props.hidden} - className="m-auto" + style={{ fontSize: "10px" }} + className="m-auto press-start-2p" onClick={props.onClick} > {vscMediaUrl ? ( @@ -34,7 +35,7 @@ function ContinueButton(props: { onClick?: () => void; hidden?: boolean }) { ) : ( <Play /> )} - Continue + CONTINUE </StyledButton> ); } |