From a39e51a8c195c53bf4d6b461dc435dcadbf90aa2 Mon Sep 17 00:00:00 2001 From: Map1en_ Date: Fri, 30 Apr 2021 15:15:40 +0800 Subject: [PATCH] fix(layout-sider): menu-item width is wrong when collapsedWidth is set (#30357) close #30355 --- components/menu/style/index.less | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/menu/style/index.less b/components/menu/style/index.less index c80f023f4c..b0536cda92 100644 --- a/components/menu/style/index.less +++ b/components/menu/style/index.less @@ -460,7 +460,9 @@ } &-inline-collapsed { - width: @menu-collapsed-width; + &:not(.@{ant-prefix}-layout-sider-children > ul) { + width: @menu-collapsed-width; + } > .@{menu-prefix-cls}-item, > .@{menu-prefix-cls}-item-group > .@{menu-prefix-cls}-item-group-list