Adds :outliner/block-title-collapse-enabled? configuration option

This commit is contained in:
Tienson Qin
2022-03-16 19:52:06 +08:00
parent 96b1c6788b
commit fc644e207b
2 changed files with 13 additions and 4 deletions

View File

@@ -3385,9 +3385,11 @@
(and
(not (util/collapsed? block))
(or (db-model/has-children? block-id)
(block-with-title? (:block/format block)
(:block/content block)
semantic?)))
(and
(:outliner/block-title-collapse-enabled? (state/get-config))
(block-with-title? (:block/format block)
(:block/content block)
semantic?))))
false))))
(defn all-blocks-with-level