Browse Source

enhance: add .new-page css class so that it can be hidden easily

Tienson Qin 4 years ago
parent
commit
b757541ea7
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

@@ -240,7 +240,8 @@
 
           [:div.flex-column-spacer] ;; Push following objects to the bottom
 
-          [:nav.px-2.space-y-1 {:aria-label "Sidebar"}
+          [:nav.px-2.space-y-1 {:aria-label "Sidebar"
+                                :class "new-page"}
            (when-not config/publishing?
              [:a.item.group.flex.items-center.px-2.py-2.text-sm.font-medium.rounded-md {:on-click #(state/pub-event! [:go/search])}
               (ui/icon "circle-plus mr-3" {:style {:font-size 20}})