From bfc83372c62410b8a086ed04f1c5248bec3b45af Mon Sep 17 00:00:00 2001 From: Dunqing Date: Fri, 23 Dec 2022 15:07:37 +0800 Subject: [PATCH] fix: prevent horizontal scroll of menus (#1279) --- packages/core/client/src/pm/index.tsx | 5 ++++- packages/core/client/src/schema-component/antd/menu/Menu.tsx | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/pm/index.tsx b/packages/core/client/src/pm/index.tsx index 948e77ed2..479d2afa1 100644 --- a/packages/core/client/src/pm/index.tsx +++ b/packages/core/client/src/pm/index.tsx @@ -315,7 +315,10 @@ 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 ed7a7848c..3ea1270fe 100644 --- a/packages/core/client/src/schema-component/antd/menu/Menu.tsx +++ b/packages/core/client/src/schema-component/antd/menu/Menu.tsx @@ -292,6 +292,7 @@ export const Menu: ComposedMenu = observer((props) => { className={css` height: 100%; overflow-y: auto; + overflow-x: hidden; .ant-menu-item { > .ant-menu-title-content { margin-left: -24px;