adds minimal scrolling to menus (#614)

pull/615/head
Steve Ruiz 2022-03-09 13:13:15 +00:00 zatwierdzone przez GitHub
rodzic 99dd67cd81
commit 4886ef668e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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))