Improve left menu toggle

This commit is contained in:
Jackson Harper 2024-02-20 13:44:26 +08:00
parent 2d1db42de4
commit e649e07e8f
2 changed files with 5 additions and 3 deletions

View file

@ -48,7 +48,8 @@ export const headerControlWidths = (
return {
width: '95%',
'@mdDown': {
width: multiSelectMode !== 'off' ? '100%' : '95%',
padding: '15px',
width: '100%',
},
'@media (min-width: 930px)': {
width: '620px',

View file

@ -112,9 +112,10 @@ export function LibraryFilterMenu(props: LibraryFilterMenuProps): JSX.Element {
display: 'none',
},
'@mdDown': {
visibility: props.showFilterMenu ? 'visible' : 'hidden',
width: '100%',
transition: 'visibility 0s, top 150ms',
transition: 'left 50ms, top 750ms',
left: props.showFilterMenu ? '0' : '-500px',
visibility: props.showFilterMenu ? 'visible' : 'hidden',
},
zIndex: 10,
}}