Просмотр исходного кода

fix: highlight blocks in srs cards

Tienson Qin 3 лет назад
Родитель
Сommit
d0848ee6eb
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/main/frontend/extensions/srs.cljs

+ 3 - 3
src/main/frontend/extensions/srs.cljs

@@ -423,7 +423,7 @@
             {blocks :value next-phase :next-phase} (show-cycle card @phase)
             {blocks :value next-phase :next-phase} (show-cycle card @phase)
             root-block (.-block card)
             root-block (.-block card)
             root-block-id (:block/uuid root-block)]
             root-block-id (:block/uuid root-block)]
-        [:div.ls-card
+        [:div.ls-card.content
          {:class (when (or preview? modal?)
          {:class (when (or preview? modal?)
                    (util/hiccup->class ".flex.flex-col.resize.overflow-y-auto"))}
                    (util/hiccup->class ".flex.flex-col.resize.overflow-y-auto"))}
          (let [repo (state/get-current-repo)]
          (let [repo (state/get-current-repo)]
@@ -622,7 +622,7 @@
                        card-index))]
                        card-index))]
            review-finished)])
            review-finished)])
       (if global?
       (if global?
-        [:div.ls-card
+        [:div.ls-card.content
          [:h1.title "Time to create a card!"]
          [:h1.title "Time to create a card!"]
 
 
          [:div
          [:div
@@ -632,7 +632,7 @@
            [:a {:href "https://docs.logseq.com/#/page/cards" :target "_blank"}
            [:a {:href "https://docs.logseq.com/#/page/cards" :target "_blank"}
             "click this link"]
             "click this link"]
            " to check the documentation."]]]
            " to check the documentation."]]]
-        [:div.opacity-60.custom-query-title.ls-card
+        [:div.opacity-60.custom-query-title.ls-card.content
          [:div.w-full.flex-1
          [:div.w-full.flex-1
           [:code.p-1 (str "Cards: " query-string)]]
           [:code.p-1 (str "Cards: " query-string)]]
          [:div.mt-2.ml-2.font-medium "No matched cards"]]))))
          [:div.mt-2.ml-2.font-medium "No matched cards"]]))))