From b27e82edf8ef8345223c1a31220330d789011630 Mon Sep 17 00:00:00 2001 From: Dunqing Date: Wed, 21 Dec 2022 15:59:50 +0800 Subject: [PATCH] fix: menu cannot scroll (#1276) --- packages/core/client/src/pm/index.tsx | 2 +- packages/core/client/src/schema-component/antd/menu/Menu.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/pm/index.tsx b/packages/core/client/src/pm/index.tsx index b6ea58a48..948e77ed2 100644 --- a/packages/core/client/src/pm/index.tsx +++ b/packages/core/client/src/pm/index.tsx @@ -315,7 +315,7 @@ const SettingsCenter = (props) => { `} theme={'light'} > - + {Object.keys(items) .sort() .map((key) => { diff --git a/packages/core/client/src/schema-component/antd/menu/Menu.tsx b/packages/core/client/src/schema-component/antd/menu/Menu.tsx index ac017a137..ed7a7848c 100644 --- a/packages/core/client/src/schema-component/antd/menu/Menu.tsx +++ b/packages/core/client/src/schema-component/antd/menu/Menu.tsx @@ -291,6 +291,7 @@ export const Menu: ComposedMenu = observer((props) => { }} className={css` height: 100%; + overflow-y: auto; .ant-menu-item { > .ant-menu-title-content { margin-left: -24px;