From c3c648d28ce970570bdaba52406a004a9e689573 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Thu, 9 Nov 2023 20:57:29 +0800 Subject: [PATCH] fix: menu failed to design while menu title is empty string (#2999) * fix: menu failed to desgin while menu title is empty string * style: menu group style improve --- packages/core/client/src/schema-component/antd/menu/Menu.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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 2bf4e3181..6fe64f042 100644 --- a/packages/core/client/src/schema-component/antd/menu/Menu.tsx +++ b/packages/core/client/src/schema-component/antd/menu/Menu.tsx @@ -28,6 +28,7 @@ const subMenuDesignerCss = css` margin-right: -34px; padding: 0 34px 0 24px; width: calc(100% + 58px); + height: 100%; &:hover { > .general-schema-designer { display: block; @@ -79,6 +80,7 @@ const designerCss = css` margin-right: -20px; padding: 0 20px; width: calc(100% + 40px); + height: 100%; &:hover { > .general-schema-designer { display: block; @@ -137,6 +139,7 @@ const sideMenuClass = css` overflow-x: hidden; .ant-menu-item { > .ant-menu-title-content { + height: 100%; margin-left: -24px; margin-right: -16px; padding: 0 16px 0 24px; @@ -149,6 +152,7 @@ const sideMenuClass = css` } .ant-menu-submenu-title { .ant-menu-title-content { + height: 100%; margin-left: -24px; margin-right: -34px; padding: 0 34px 0 24px;