From d3627c5ba9abfe599604ffa95fd1af7fa7c69f4d Mon Sep 17 00:00:00 2001 From: jack zhang <1098626505@qq.com> Date: Wed, 6 Mar 2024 14:37:13 +0800 Subject: [PATCH] fix: sidebar menu text overflow (#3626) --- .../components/SchemaInitializerButton.tsx | 13 ++++++++++++- .../client/src/modules/menu/menuItemInitializer.tsx | 3 +++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerButton.tsx b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerButton.tsx index 4bf528236..443fd830f 100644 --- a/packages/core/client/src/application/schema-initializer/components/SchemaInitializerButton.tsx +++ b/packages/core/client/src/application/schema-initializer/components/SchemaInitializerButton.tsx @@ -28,7 +28,18 @@ export const SchemaInitializerButton: FC = React.m icon={typeof options.icon === 'string' ? : options.icon} {...others} > - {compile(options.title)} + + {compile(options.title)} + ); }); diff --git a/packages/core/client/src/modules/menu/menuItemInitializer.tsx b/packages/core/client/src/modules/menu/menuItemInitializer.tsx index 4c146fce8..b5271258f 100644 --- a/packages/core/client/src/modules/menu/menuItemInitializer.tsx +++ b/packages/core/client/src/modules/menu/menuItemInitializer.tsx @@ -8,6 +8,9 @@ export const menuItemInitializer = new SchemaInitializer({ insertPosition: 'beforeEnd', icon: 'PlusOutlined', title: '{{t("Add menu item")}}', + style: { + width: '100%', + }, items: [ { name: 'group',