Skip to content

Commit bda3e5d

Browse files
committed
fix: fix menu style not work
1 parent a3887f8 commit bda3e5d

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

src/components/Menu/src/index.less

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,25 @@
5050
}
5151

5252
// collapsed show title end
53+
.ant-menu-submenu-title {
54+
> .basic-menu__name {
55+
display: flex;
56+
width: 100%;
57+
justify-content: space-between;
58+
align-items: center;
59+
}
60+
}
61+
62+
.ant-menu-item {
63+
transition: unset;
5364

54-
&__name {
55-
display: flex;
56-
width: 100%;
57-
justify-content: space-between;
58-
align-items: center;
65+
> .basic-menu__name {
66+
.basic-menu__tag {
67+
float: right;
68+
margin-top: @app-menu-item-height / 2;
69+
transform: translate(0%, -50%);
70+
}
71+
}
5972
}
6073

6174
&__tag {
@@ -219,10 +232,6 @@
219232
}
220233
}
221234

222-
.ant-menu-item {
223-
transition: unset;
224-
}
225-
226235
&:not(.basic-menu__sidebar-hor).ant-menu-inline-collapsed {
227236
.basic-menu-item__level1 {
228237
> div {

0 commit comments

Comments
 (0)