From bda3e5da30b434dd3a5879695261422fdd365455 Mon Sep 17 00:00:00 2001 From: vben Date: Wed, 11 Nov 2020 01:00:01 +0800 Subject: [PATCH] fix: fix menu style not work --- src/components/Menu/src/index.less | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/src/components/Menu/src/index.less b/src/components/Menu/src/index.less index 3cc580804..096a3f8fc 100644 --- a/src/components/Menu/src/index.less +++ b/src/components/Menu/src/index.less @@ -50,12 +50,25 @@ } // collapsed show title end + .ant-menu-submenu-title { + > .basic-menu__name { + display: flex; + width: 100%; + justify-content: space-between; + align-items: center; + } + } + + .ant-menu-item { + transition: unset; - &__name { - display: flex; - width: 100%; - justify-content: space-between; - align-items: center; + > .basic-menu__name { + .basic-menu__tag { + float: right; + margin-top: @app-menu-item-height / 2; + transform: translate(0%, -50%); + } + } } &__tag { @@ -219,10 +232,6 @@ } } - .ant-menu-item { - transition: unset; - } - &:not(.basic-menu__sidebar-hor).ant-menu-inline-collapsed { .basic-menu-item__level1 { > div {