fix(layout-sider): menu-item width is wrong when collapsedWidth is set (#30357)

close #30355
This commit is contained in:
Map1en_ 2021-04-30 15:15:40 +08:00 committed by GitHub
parent 3b51792f9c
commit a39e51a8c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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