Browse Source

enhance: style tweaks

Tienson Qin 4 years ago
parent
commit
7650510881

+ 4 - 0
src/main/frontend/components/block.css

@@ -365,3 +365,7 @@ a:hover > .bullet-container .bullet {
 .embed-header {
   font-weight: 600;
 }
+
+a.filter svg {
+    transform: scale(0.9);
+}

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

@@ -112,7 +112,7 @@
               [:h2.font-bold.opacity-50 (let []
                                           (str n-ref " Linked Reference"
                                                (if (> n-ref 1) "s")))]
-              [:a.opacity-50.hover:opacity-100
+              [:a.opacity-50.hover:opacity-100.filter
                {:title "Filter"
                 :on-click #(state/set-modal! (filter-dialog filters-atom references page-name))}
                (svg/filter-icon (cond

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

@@ -95,13 +95,7 @@
   [repo idx db-id block-type block-data t]
   (case block-type
     :contents
-    [[:a {:on-click (fn [e]
-                      (util/stop e)
-                      (if-not (db/entity [:block/name "contents"])
-                        (page-handler/create! "contents")
-                        (route-handler/redirect! {:to          :page
-                                                  :path-params {:name "contents"}})))}
-      (t :right-side-bar/contents)]
+    [(t :right-side-bar/contents)
      (contents)]
 
     :recent