fix(editor): Fix collapsed sub menu elements (#6778)

This commit is contained in:
Csaba Tuncsik 2023-07-28 13:09:44 +02:00 committed by GitHub
parent e19b0d7748
commit d33528dab3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@
v-for="child in availableChildren"
:key="child.id"
:item="child"
:compact="compact"
:compact="false"
:tooltipDelay="tooltipDelay"
:popperClass="popperClass"
:mode="mode"
@ -184,22 +184,6 @@ export default defineComponent({
--sub-menu-item-height: 27px;
}
@mixin compact() {
.icon {
margin: 0;
overflow: visible !important;
visibility: visible !important;
width: initial !important;
height: initial !important;
}
.label {
display: none;
}
.secondaryIcon {
display: none;
}
}
.submenu {
background: none !important;
@ -307,7 +291,19 @@ export default defineComponent({
}
.compact {
@include compact();
.icon {
margin: 0;
overflow: visible !important;
visibility: visible !important;
width: initial !important;
height: initial !important;
}
.label {
display: none;
}
.secondaryIcon {
display: none;
}
}
.submenuPopper {
@ -327,9 +323,8 @@ export default defineComponent({
}
&.compact {
:global(.el-menu--popup) {
min-width: auto;
@include compact();
.label {
display: inline-block;
}
}
}