Merge pull request #1090 from omnivore-app/fix/1076

Added CSS to make Menu scrollable
This commit is contained in:
Jackson Harper 2022-08-18 11:43:44 +08:00 committed by GitHub
commit 0eda66652e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,13 +2,21 @@ import { VStack } from '../../elements/LayoutPrimitives'
import { useGetUserPreferences } from '../../../lib/networking/queries/useGetUserPreferences'
import { Menubar } from '../Menu'
export function LibraryMenu(): JSX.Element {
useGetUserPreferences()
return (
<VStack alignment="start" distribution="start" css={{ width: '286px', pl: '16px', height: '100%' }}>
<VStack
alignment="start"
distribution="start"
css={{
width: '286px',
minWidth: '286px',
height: 'calc(100% - 100px)',
overflowY: 'auto',
}}
>
<Menubar />
</VStack>
)
}
}