chore: fix PageUp and PageDown not scrolling in preferences view

This commit is contained in:
Aman Harwara
2023-07-06 22:13:34 +05:30
parent 53e978c30e
commit 67359801bb

View File

@@ -4,11 +4,12 @@ import { PreferencesSessionController } from './Controller/PreferencesSessionCon
import PreferencesMenuView from './PreferencesMenuView'
import PaneSelector from './PaneSelector'
import { PreferencesProps } from './PreferencesProps'
import { FOCUSABLE_BUT_NOT_TABBABLE } from '@/Constants/Constants'
const PreferencesCanvas: FunctionComponent<PreferencesProps & { menu: PreferencesSessionController }> = (props) => (
<div className="flex min-h-0 flex-grow flex-col md:flex-row md:justify-between">
<PreferencesMenuView menu={props.menu} />
<div className="min-h-0 flex-grow overflow-auto bg-contrast">
<div className="min-h-0 flex-grow overflow-auto bg-contrast" tabIndex={FOCUSABLE_BUT_NOT_TABBABLE}>
<PaneSelector {...props} />
</div>
</div>