enhance: unify page/block editor

This commit is contained in:
Tienson Qin
2024-08-27 14:01:12 +08:00
parent 190cb36a07
commit 8e8e97c7a6
10 changed files with 78 additions and 71 deletions

View File

@@ -24,9 +24,8 @@
(let [edit-input-id-prefix (str "edit-block-" (:block/uuid page))
configure-opts {:selected? false
:page-configure? configure?}
has-viewable-properties? (outliner-property/block-has-viewable-properties? page)
hide-properties? (:logseq.property/hide-properties? page)]
(when (or configure? (and (not hide-properties?) has-viewable-properties?))
has-viewable-properties? (outliner-property/block-has-viewable-properties? page)]
(when (or configure? has-viewable-properties?)
[:div.ls-page-properties
{:class (util/classnames [{:no-properties (not has-viewable-properties?)}])}
(if configure?