Browse Source

sidebar bug fixed

Daniel 1 year ago
parent
commit
36ad20e175
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/scss/_app-sidebar.scss

+ 6 - 1
src/scss/_app-sidebar.scss

@@ -466,10 +466,11 @@
         }
 
         .app-sidebar {
-          position: sticky;
+          position: fixed;
           top: 0;
           bottom: 0;
           max-height: 100vh;
+          margin-left: calc(var(--#{$lte-prefix}sidebar-width) * -1); // stylelint-disable-line function-disallowed-list
 
           .sidebar-wrapper {
             height: subtract(100vh, add($lte-app-header-height, 1px));
@@ -477,6 +478,10 @@
         }
 
         &.sidebar-open {
+          .app-sidebar {
+            margin-left: 0;
+          }
+
           .sidebar-overlay {
             position: absolute;
             inset: 0;