diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-09-06 21:39:45 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-09-06 21:39:45 -0700 |
commit | 6e8885fc2f7feb06ef6ac87d2d7688f9f33d15de (patch) | |
tree | f69c615117c9b07329f1c9fd4b34435bc8b05fcd /extension/react-app/src/components/ComboBox.tsx | |
parent | e9d289173ec28a1a90ae58b1834c476bb46834b8 (diff) | |
download | sncontinue-6e8885fc2f7feb06ef6ac87d2d7688f9f33d15de.tar.gz sncontinue-6e8885fc2f7feb06ef6ac87d2d7688f9f33d15de.tar.bz2 sncontinue-6e8885fc2f7feb06ef6ac87d2d7688f9f33d15de.zip |
fix: :lipstick: ui tweaks to history + scrollbars
Diffstat (limited to 'extension/react-app/src/components/ComboBox.tsx')
-rw-r--r-- | extension/react-app/src/components/ComboBox.tsx | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/extension/react-app/src/components/ComboBox.tsx b/extension/react-app/src/components/ComboBox.tsx index 8364645e..41b44684 100644 --- a/extension/react-app/src/components/ComboBox.tsx +++ b/extension/react-app/src/components/ComboBox.tsx @@ -109,6 +109,13 @@ const Ul = styled.ul<{ outline: 1px solid ${lightGray}; z-index: 2; -ms-overflow-style: none; + + scrollbar-width: none; /* Firefox */ + + /* Hide scrollbar for Chrome, Safari and Opera */ + &::-webkit-scrollbar { + display: none; + } `; const Li = styled.li<{ @@ -584,15 +591,6 @@ const ComboBox = React.forwardRef((props: ComboBoxProps, ref) => { {item.name} {" "} <span style={{ color: lightGray }}>{item.description}</span> - {downshiftProps.highlightedIndex === index && - item.content && ( - <> - <br /> - <pre style={{ color: lightGray }}> - {item.content.split("\n").slice(0, 5).join("\n")} - </pre> - </> - )} </span> </Li> ))} |