Explorar o código

fix: hide bullets when the block content only has timestamps

Tienson Qin %!s(int64=4) %!d(string=hai) anos
pai
achega
2bae2126b4
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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))
         ref? (:ref? config)
         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])]
     [:div.mr-2.flex.flex-row.items-center
      {:style {:height 24