fix(4186): various collapsed sidebar-mini bugs

pull/4209/head
REJack 2022-01-22 22:01:56 +01:00
parent 3831b6252a
commit f88d61cbc6
3 changed files with 48 additions and 45 deletions

View File

@ -862,7 +862,7 @@
animation-fill-mode: both; animation-fill-mode: both;
} }
.sidebar-collapse .sidebar & { .sidebar-collapse .sidebar:not(:hover) & {
.menu-open > .nav-treeview { .menu-open > .nav-treeview {
max-height: 0; max-height: 0;
animation-name: fadeOut; animation-name: fadeOut;

View File

@ -278,9 +278,6 @@
&.sidebar-focused, &.sidebar-focused,
&:hover { &:hover {
.nav-link {
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2);
}
&:not(.hide-nav-header-on-hover) { &:not(.hide-nav-header-on-hover) {
.nav-header { .nav-header {
display: inline-block; display: inline-block;
@ -289,6 +286,9 @@
// Show sidebar search when hover/focus on the sidebar mini mode. // Show sidebar search when hover/focus on the sidebar mini mode.
&:not(.sidebar-no-expand) { &:not(.sidebar-no-expand) {
.nav-link {
width: calc(#{$sidebar-width} - #{$sidebar-padding-x} * 2);
}
.form-control-sidebar { .form-control-sidebar {
display: inline-block; display: inline-block;
} }
@ -462,6 +462,7 @@
animation-duration: $transition-speed; animation-duration: $transition-speed;
animation-fill-mode: both; animation-fill-mode: both;
visibility: hidden; visibility: hidden;
display: inline-block;
width: 0; width: 0;
} }

View File

@ -92,6 +92,7 @@
} }
} }
&:not(.sidebar-no-expand) {
&:hover, &:hover,
&.sidebar-focused { &.sidebar-focused {
width: $sidebar-width; width: $sidebar-width;
@ -144,6 +145,7 @@
} }
} }
} }
}
// Make an element visible only when sidebar mini is active // Make an element visible only when sidebar mini is active
.visible-sidebar-mini { .visible-sidebar-mini {