Remove horizontal scrollbar from theme selector

This commit is contained in:
Neshura 2022-12-22 22:02:52 +01:00
parent f14adfe31f
commit 66b6f1e65e
No known key found for this signature in database
GPG key ID: ACDF5B6EBECF6B0A

View file

@ -67,7 +67,9 @@ export const ThemeDropDownOptions = styled.div<DisplayPropType>`
border-radius: 5px;
border-top-left-radius: 0px; border-top-right-radius: 0px;
z-index: 1;
overflow: ${ props => props.show ? "scroll" : "hidden" };
overflow-x: hidden;
overflow-y: ${ props => props.show ? "scroll" : "hidden" };
scrollbar-width: none;
max-height: ${ props => props.show ? "20%" : "0%" };
visibility: ${ props => props.show ? "visible" : "hidden" };