Просмотр исходного кода

fix: resizer should not scroll with the container

Peng Xiao 4 лет назад
Родитель
Сommit
6d4c97a1b7

+ 1 - 1
src/main/frontend/components/right_sidebar.cljs

@@ -267,7 +267,7 @@
          [:div.cp__right-sidebar-inner.flex.flex-col.h-full#right-sidebar-container
 
           (sidebar-resizer)
-          [:div
+          [:div.cp__right-sidebar-scollable
            [:div.cp__right-sidebar-topbar.flex.flex-row.justify-between.items-center.px-4.h-12
            [:div.cp__right-sidebar-settings.hide-scrollbar {:key "right-sidebar-settings"}
             [:div.ml-4.text-sm

+ 3 - 4
src/main/frontend/components/sidebar.css

@@ -113,15 +113,14 @@
     width: var(--ls-right-sidebar-width);
   }
 
-  &::-webkit-scrollbar {
-    display: none;
+  &-scollable {
+    min-height: 100%;
+    overflow-y: scroll;
   }
 
   &-inner {
     padding-top: 0;
     position: relative;
-    min-height: 100%;
-    overflow-y: scroll;
 
     .resizer {
       position: absolute;