Browse Source

fix(pdf): calculate highlight selection async

charlie 3 years ago
parent
commit
424cc3c3ee

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

@@ -130,7 +130,7 @@
 (rum/defc category-tabs
   [t category on-action]
 
-  [:div.secondary-tabs.categories
+  [:div.secondary-tabs.categories.flex
    (ui/button
     [:span.flex.items-center (ui/icon "puzzle") (t :plugins)]
     :intent "logseq"

+ 5 - 0
src/main/frontend/components/plugins.css

@@ -231,6 +231,11 @@
           opacity: .8;
         }
       }
+
+      a {
+        color: var(--ls-primary-text-color);
+        opacity: .7;
+      }
     }
 
     > .l {

+ 3 - 3
src/main/frontend/components/search.cljs

@@ -271,8 +271,8 @@
     [:div "Recent search:"]
     (ui/with-shortcut :go/search-in-page "bottom"
       [:div.flex-row.flex.align-items
-       [:div.mr-2 "Search blocks in page:"]
-       [:div {:style {:margin-top 3}}
+       [:div.mr-3.flex.leading-4 "Search blocks in page:"]
+       [:div.flex.items-center
         (ui/toggle in-page-search?
                    (fn [_value]
                      (state/set-search-mode! (if in-page-search? :global :page)))
@@ -283,7 +283,7 @@
                   :interactive     true
                   :arrow           true
                   :theme       "monospace"}
-                 [:a.inline-block.fade-link
+                 [:a.flex.fade-link.items-center
                   {:style {:margin-left 12}
                    :on-click #(state/toggle! :ui/command-palette-open?)}
                   (ui/icon "command" {:style {:font-size 20}})])])]

+ 1 - 4
src/main/frontend/ui.cljs

@@ -922,10 +922,7 @@
              :on-tweet-load-success #(reset! *loading? false)})]]))
 
 (def get-adapt-icon-class
-  (memoize (fn [klass]
-             (do
-               (prn "==> pick:" klass)
-               (r/adapt-class klass)))))
+  (memoize (fn [klass] (r/adapt-class klass))))
 
 (defn icon
   ([class] (icon class nil))