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
This commit is contained in:
katherinehhh 2023-11-09 20:57:29 +08:00 committed by GitHub
parent 61d14309ed
commit c3c648d28c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@ const subMenuDesignerCss = css`
margin-right: -34px; margin-right: -34px;
padding: 0 34px 0 24px; padding: 0 34px 0 24px;
width: calc(100% + 58px); width: calc(100% + 58px);
height: 100%;
&:hover { &:hover {
> .general-schema-designer { > .general-schema-designer {
display: block; display: block;
@ -79,6 +80,7 @@ const designerCss = css`
margin-right: -20px; margin-right: -20px;
padding: 0 20px; padding: 0 20px;
width: calc(100% + 40px); width: calc(100% + 40px);
height: 100%;
&:hover { &:hover {
> .general-schema-designer { > .general-schema-designer {
display: block; display: block;
@ -137,6 +139,7 @@ const sideMenuClass = css`
overflow-x: hidden; overflow-x: hidden;
.ant-menu-item { .ant-menu-item {
> .ant-menu-title-content { > .ant-menu-title-content {
height: 100%;
margin-left: -24px; margin-left: -24px;
margin-right: -16px; margin-right: -16px;
padding: 0 16px 0 24px; padding: 0 16px 0 24px;
@ -149,6 +152,7 @@ const sideMenuClass = css`
} }
.ant-menu-submenu-title { .ant-menu-submenu-title {
.ant-menu-title-content { .ant-menu-title-content {
height: 100%;
margin-left: -24px; margin-left: -24px;
margin-right: -34px; margin-right: -34px;
padding: 0 34px 0 24px; padding: 0 34px 0 24px;