mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [sub-menu] style error in collapsed state (#13135)
* fix(components): [sub-menu] style error in collapsed state * fix(theme-chalk): [menu] optimize --------- Co-authored-by: tolking <qw13131wang@gmail.com>
This commit is contained in:
@@ -73,6 +73,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.#{$namespace}-menu--collapse) .#{$namespace}-sub-menu__title {
|
||||
padding-right: calc(
|
||||
#{getCssVar('menu-base-level-padding')} + #{getCssVar('menu-icon-width')}
|
||||
);
|
||||
}
|
||||
|
||||
@include m(horizontal) {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
@@ -250,9 +256,6 @@
|
||||
|
||||
@include e(title) {
|
||||
@include menu-item;
|
||||
padding-right: calc(
|
||||
#{getCssVar('menu-base-level-padding')} + #{getCssVar('menu-icon-width')}
|
||||
);
|
||||
|
||||
&:hover {
|
||||
background-color: getCssVar('menu-hover-bg-color');
|
||||
|
||||
Reference in New Issue
Block a user