Browse Source

fix: graph-view width now limited by the main container width

Related to #1456
Tienson Qin 4 years ago
parent
commit
132b7ab1cc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/sidebar.cljs

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

@@ -131,7 +131,8 @@
            (ui/loading (t :loading))]]
 
          :else
-         [:div.max-w-7xl.mx-auto {:style {:margin-bottom (if global-graph-pages? 0 120)}}
+         [:div {:class (if global-graph-pages? "" (util/hiccup->class "max-w-7xl.mx-auto"))
+                :style {:margin-bottom (if global-graph-pages? 0 120)}}
           main-content])]]
      (right-sidebar/sidebar)]))