Browse Source

fix: all-pages style in publishing

Tienson Qin 4 years ago
parent
commit
dbf272767c
1 changed files with 9 additions and 9 deletions
  1. 9 9
      src/main/frontend/components/right_sidebar.cljs

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

@@ -233,27 +233,27 @@
           [:div.cp__right-sidebar-settings.hide-scrollbar {:key "right-sidebar-settings"}
            [:div.ml-4.text-sm
             [:a.cp__right-sidebar-settings-btn {:on-click (fn [e]
-                                                  (state/sidebar-add-block! repo "contents" :contents nil))}
+                                                            (state/sidebar-add-block! repo "contents" :contents nil))}
              (t :right-side-bar/contents)]]
 
            [:div.ml-4.text-sm
             [:a.cp__right-sidebar-settings-btn {:on-click (fn [_e]
-                                                  (state/sidebar-add-block! repo "recent" :recent nil))}
+                                                            (state/sidebar-add-block! repo "recent" :recent nil))}
              (t :right-side-bar/recent)]]
 
            (when config/publishing?
              [:div.ml-4.text-sm
-              [:a {:href (rfe/href :all-pages)}
+              [:a.cp__right-sidebar-settings-btn {:href (rfe/href :all-pages)}
                (t :all-pages)]])
 
            [:div.ml-4.text-sm
             [:a.cp__right-sidebar-settings-btn {:on-click (fn []
-                                                  (when-let [page (get-current-page)]
-                                                    (state/sidebar-add-block!
-                                                     repo
-                                                     (str "page-graph-" page)
-                                                     :page-graph
-                                                     page)))}
+                                                            (when-let [page (get-current-page)]
+                                                              (state/sidebar-add-block!
+                                                               repo
+                                                               (str "page-graph-" page)
+                                                               :page-graph
+                                                               page)))}
              (t :right-side-bar/page)]]]
 
           (for [[idx [repo db-id block-type block-data]] (medley/indexed blocks)]