Fixed Sidebar - Scrollbar not working when change screen size

pull/4908/head
Daniel 2023-02-09 20:26:02 +05:30
parent 3e064d11e4
commit 05d3c49284
5 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,5 @@
.content-wrapper {
grid-area: #{$lte-prefix}content-wrapper;
max-width: 100vw;
padding-bottom: 1rem;
}

View File

@ -1,4 +1,4 @@
@include media-breakpoint-up(lg) {
@include media-breakpoint-up($lte-sidebar-breakpoint) {
.layout-fixed {
.main-sidebar {
position: fixed;
@ -6,6 +6,7 @@
bottom: 0;
left: 0;
float: none;
max-height: 100vh;
.sidebar {
height: subtract(100vh, add($lte-main-header-height-inner, $lte-main-header-bottom-border-width));

View File

@ -4,10 +4,11 @@
position: fixed;
top: 0;
bottom: 0;
min-height: 100vh;
max-height: 100vh;
margin-left: calc(var(--#{$lte-prefix}sidebar-width) * -1); // stylelint-disable-line function-disallowed-list
.sidebar {
height: subtract(100vh, add($lte-main-header-height-inner, $lte-main-header-bottom-border-width));
overflow-x: hidden;
overflow-y: auto;
}

View File

@ -5,6 +5,7 @@
.main-footer {
grid-area: #{$lte-prefix}main-footer;
width: inherit;
max-width: 100vw;
padding: $lte-main-footer-padding;
color: $lte-main-footer-color;
background-color: $lte-main-footer-bg;

View File

@ -5,6 +5,7 @@
.main-header {
z-index: $lte-zindex-main-header;
grid-area: #{$lte-prefix}main-header;
max-width: 100vw;
border-bottom: $lte-main-header-bottom-border;
.nav-link {