Sidebar scroll fixed (#3304)

pull/3306/head
Daniel 2021-01-13 13:42:15 +05:30
parent 39b5a9a883
commit 151eefc778
5 changed files with 20 additions and 3 deletions

View File

@ -580,7 +580,7 @@ body:not(.layout-fixed) {
.control-sidebar-content {
height: calc(100vh - #{$main-header-height});
overflow-y: auto;
scrollbar-width: thin;
@include scrollbar-width-thin();
}
}
}

View File

@ -19,12 +19,13 @@
.sidebar {
height: calc(100% - (#{$main-header-height-inner} + #{$main-header-bottom-border-width}));
overflow-x: none;
overflow-y: initial;
scrollbar-width: thin;
padding-bottom: $sidebar-padding-y;
padding-left: $sidebar-padding-x;
padding-right: $sidebar-padding-x;
padding-top: $sidebar-padding-y;
@include scrollbar-width-thin();
}
// Sidebar user panel

View File

@ -415,6 +415,13 @@
}
}
}
.sidebar {
@include scrollbar-width-thin();
}
}
.sidebar {
@include scrollbar-width-none();
}
}

View File

@ -30,3 +30,13 @@
background-image: gradient(linear, left bottom, left top, color-stop(0, $start), color-stop(1, $stop));
}
@mixin scrollbar-width-thin() {
scrollbar-width: thin;
scrollbar-color: #a9a9a9 transparent;
}
@mixin scrollbar-width-none() {
scrollbar-width: none;
}
//

View File

@ -25,7 +25,6 @@
.nav-sidebar > .nav-header,
.nav-sidebar .nav-link {
white-space: nowrap;
overflow: hidden;
}
// When the sidebar is collapsed...