mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-02 07:01:30 -08:00
fix(editor): Fix collapsed sub menu elements (#6778)
This commit is contained in:
parent
e19b0d7748
commit
d33528dab3
|
@ -25,7 +25,7 @@
|
||||||
v-for="child in availableChildren"
|
v-for="child in availableChildren"
|
||||||
:key="child.id"
|
:key="child.id"
|
||||||
:item="child"
|
:item="child"
|
||||||
:compact="compact"
|
:compact="false"
|
||||||
:tooltipDelay="tooltipDelay"
|
:tooltipDelay="tooltipDelay"
|
||||||
:popperClass="popperClass"
|
:popperClass="popperClass"
|
||||||
:mode="mode"
|
:mode="mode"
|
||||||
|
@ -184,22 +184,6 @@ export default defineComponent({
|
||||||
--sub-menu-item-height: 27px;
|
--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 {
|
.submenu {
|
||||||
background: none !important;
|
background: none !important;
|
||||||
|
|
||||||
|
@ -307,7 +291,19 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
.compact {
|
.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 {
|
.submenuPopper {
|
||||||
|
@ -327,9 +323,8 @@ export default defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
&.compact {
|
&.compact {
|
||||||
:global(.el-menu--popup) {
|
.label {
|
||||||
min-width: auto;
|
display: inline-block;
|
||||||
@include compact();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue