mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 15:45:00 +00:00
Add option to handle default block refs expanding behaviour (#8839)
* Add option to handle default block refs expanding behaviour * provide default value * polish config desc for dicts * polish config desc in template config * specify option on settings page * fix: typo on fn name * chore: remove the tail period --------- Co-authored-by: situ2001 <yongcong2001@outlook.com>
This commit is contained in:
@@ -2383,7 +2383,7 @@
|
||||
current-block-page? (= (str (:block/uuid block)) (state/get-current-page))
|
||||
embed-self? (and (:embed? config)
|
||||
(= (:block/uuid block) (:block/uuid (:block config))))
|
||||
default-hide? (if (and current-block-page? (not embed-self?)) false true)]
|
||||
default-hide? (if (and current-block-page? (not embed-self?) (state/auto-expand-block-refs?)) false true)]
|
||||
(assoc state ::hide-block-refs? (atom default-hide?))))}
|
||||
[state config {:block/keys [uuid format] :as block} edit-input-id block-id edit? hide-block-refs-count?]
|
||||
(let [*hide-block-refs? (get state ::hide-block-refs?)
|
||||
|
||||
Reference in New Issue
Block a user