fix: menu cannot scroll (#1276)

This commit is contained in:
Dunqing 2022-12-21 15:59:50 +08:00 committed by GitHub
parent a7960422c5
commit b27e82edf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -315,7 +315,7 @@ const SettingsCenter = (props) => {
`} `}
theme={'light'} theme={'light'}
> >
<Menu selectedKeys={[pluginName]} style={{ height: 'calc(100vh - 46px)' }}> <Menu selectedKeys={[pluginName]} style={{ height: 'calc(100vh - 46px)', overflowY: 'auto' }}>
{Object.keys(items) {Object.keys(items)
.sort() .sort()
.map((key) => { .map((key) => {

View File

@ -291,6 +291,7 @@ export const Menu: ComposedMenu = observer((props) => {
}} }}
className={css` className={css`
height: 100%; height: 100%;
overflow-y: auto;
.ant-menu-item { .ant-menu-item {
> .ant-menu-title-content { > .ant-menu-title-content {
margin-left: -24px; margin-left: -24px;