Ver Fonte

fix: hide bullets when the block content only has timestamps

Tienson Qin há 4 anos atrás
pai
commit
2bae2126b4
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      src/main/frontend/components/block.cljs

+ 4 - 1
src/main/frontend/components/block.cljs

@@ -1252,7 +1252,10 @@
         dark? (= "dark" (state/sub :ui/theme))
         dark? (= "dark" (state/sub :ui/theme))
         ref? (:ref? config)
         ref? (:ref? config)
         collapsed? (if ref? ref-collapsed? collapsed?)
         collapsed? (if ref? ref-collapsed? collapsed?)
-        empty-content? (string/blank? (:block/content block))
+        empty-content? (string/blank?
+                        (property/remove-built-in-properties
+                         (:block/format block)
+                         (:block/content block)))
         edit? (state/sub [:editor/editing? edit-input-id])]
         edit? (state/sub [:editor/editing? edit-input-id])]
     [:div.mr-2.flex.flex-row.items-center
     [:div.mr-2.flex.flex-row.items-center
      {:style {:height 24
      {:style {:height 24