adds minimal scrolling to menus (#614)
This commit is contained in:
parent
99dd67cd81
commit
4886ef668e
2 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,8 @@ export const StyledContent = styled(MenuContent, {
|
||||||
width: 'fit-content',
|
width: 'fit-content',
|
||||||
height: 'fit-content',
|
height: 'fit-content',
|
||||||
minWidth: 0,
|
minWidth: 0,
|
||||||
|
maxHeight: '75vh',
|
||||||
|
overflowY: 'scroll',
|
||||||
'& *': {
|
'& *': {
|
||||||
boxSizing: 'border-box',
|
boxSizing: 'border-box',
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,6 @@ import { DMContent, DMDivider } from '~components/Primitives/DropdownMenu'
|
||||||
import { SmallIcon } from '~components/Primitives/SmallIcon'
|
import { SmallIcon } from '~components/Primitives/SmallIcon'
|
||||||
import { RowButton } from '~components/Primitives/RowButton'
|
import { RowButton } from '~components/Primitives/RowButton'
|
||||||
import { ToolButton } from '~components/Primitives/ToolButton'
|
import { ToolButton } from '~components/Primitives/ToolButton'
|
||||||
import { preventEvent } from '~components/preventEvent'
|
|
||||||
|
|
||||||
const sortedSelector = (s: TDSnapshot) =>
|
const sortedSelector = (s: TDSnapshot) =>
|
||||||
Object.values(s.document.pages).sort((a, b) => (a.childIndex || 0) - (b.childIndex || 0))
|
Object.values(s.document.pages).sort((a, b) => (a.childIndex || 0) - (b.childIndex || 0))
|
||||||
|
|
Loading…
Reference in a new issue