fix: show full properties for pages when expanded

fixes https://github.com/logseq/db-test/issues/409
This commit is contained in:
Tienson Qin
2025-08-27 22:11:01 +08:00
parent 2cf9a6c61c
commit 96fc41eb20

View File

@@ -563,11 +563,11 @@
(assoc state
::id (str (random-uuid))
::block block)))}
[state _target-block {:keys [sidebar-properties? tag-dialog?] :as opts}]
[state _target-block {:keys [page-title? sidebar-properties? tag-dialog?] :as opts}]
(let [id (::id state)
db-id (:db/id (::block state))
block (db/sub-block db-id)
show-properties? (or sidebar-properties? tag-dialog?)
show-properties? (or sidebar-properties? tag-dialog? page-title?)
show-empty-and-hidden-properties? (let [{:keys [mode show? ids]} (state/sub :ui/show-empty-and-hidden-properties?)]
(and show?
(or (= mode :global)
@@ -587,6 +587,7 @@
;; other position
(when-not (or show-properties?
(and (:sidebar? opts) (= (:id opts) (str (:block/uuid block))))
page-title?
show-empty-and-hidden-properties?)
(outliner-property/property-with-other-position? ent))