adds minimal scrolling to menus (#614)

This commit is contained in:
Steve Ruiz 2022-03-09 13:13:15 +00:00 committed by GitHub
parent 99dd67cd81
commit 4886ef668e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -37,6 +37,8 @@ export const StyledContent = styled(MenuContent, {
width: 'fit-content',
height: 'fit-content',
minWidth: 0,
maxHeight: '75vh',
overflowY: 'scroll',
'& *': {
boxSizing: 'border-box',
},

View file

@ -9,7 +9,6 @@ import { DMContent, DMDivider } from '~components/Primitives/DropdownMenu'
import { SmallIcon } from '~components/Primitives/SmallIcon'
import { RowButton } from '~components/Primitives/RowButton'
import { ToolButton } from '~components/Primitives/ToolButton'
import { preventEvent } from '~components/preventEvent'
const sortedSelector = (s: TDSnapshot) =>
Object.values(s.document.pages).sort((a, b) => (a.childIndex || 0) - (b.childIndex || 0))