Browse Source

add color option for simplebar-react

reiji-h 1 year ago
parent
commit
11fe70f0d0
1 changed files with 13 additions and 1 deletions
  1. 13 1
      apps/app/src/client/components/Sidebar/Sidebar.module.scss

+ 13 - 1
apps/app/src/client/components/Sidebar/Sidebar.module.scss

@@ -44,7 +44,7 @@
         min-height: 50vh;
         max-height: calc(100vh - var.$grw-sidebar-nav-width * 2);
         border-radius: 0 4px 4px 0 ;
-        .simple-sidebar {
+        .simple-scrollbar {
           max-height: inherit;
         }
       }
@@ -84,6 +84,12 @@
     .sidebar-contents-container {
       background-color: color-mix(in srgb, var(--grw-highlight-100), var(--bs-body-bg));
     }
+
+    // overwrite simplebar-react css
+    .simplebar-scrollbar::before {
+      background-color:var(--bs-gray-500);
+    }
+
   }
 
   // frosted glass effect in collapsed mode
@@ -107,6 +113,12 @@
     .sidebar-contents-container {
       background-color: color-mix(in srgb, var(--grw-highlight-800), var(--bs-body-bg));
     }
+
+    // overwrite simplebar-react css
+    .simplebar-scrollbar::before {
+      background-color:var(--bs-gray-500);
+    }
+
   }
 
   // frosted glass effect in collapsed mode