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

fix: remove padding bottom for global graph

Tienson Qin 5 лет назад
Родитель
Сommit
49d6b70c68

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

@@ -434,7 +434,7 @@
            {:width (if (and (> width 1280) sidebar-open?)
                      (- width 24 600)
                      (- width 24))
-            :height (- height 120)
+            :height height
             :ref (fn [v] (reset! graph-ref v))
             :ref-atom graph-ref}))
          [:div.ls-center.mt-20

+ 2 - 1
src/main/frontend/components/sidebar.cljs

@@ -320,7 +320,8 @@
           :close-fn    close-fn
           :route-match route-match})
         [:div.#app-container.cp__sidebar-layout
-         {:class (if sidebar-open? "is-right-sidebar-open")}
+         {:class (if sidebar-open? "is-right-sidebar-open")
+          :style {:padding-bottom (if global-graph-pages? 0 30)}}
          (header/header {:open-fn        open-fn
                          :white?         white?
                          :current-repo   current-repo

+ 0 - 1
src/main/frontend/components/sidebar.css

@@ -56,7 +56,6 @@
   display: flex;
   flex-direction: column;
   min-height: 100vh;
-  padding-bottom: 30px;
 }
 
 .cp__sidebar-main-layout {