Skip to content

Commit

Permalink
fix: fix menu style not work
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Nov 10, 2020
1 parent a3887f8 commit bda3e5d
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions src/components/Menu/src/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -219,10 +232,6 @@
}
}

.ant-menu-item {
transition: unset;
}

&:not(.basic-menu__sidebar-hor).ant-menu-inline-collapsed {
.basic-menu-item__level1 {
> div {
Expand Down

0 comments on commit bda3e5d

Please sign in to comment.