fix(regression): properties and classes collapsed on publishing

Properties and class pages have critical info in their properties.
When reading on a published site, it's bad ux to have this useful info
hidden on hover
This commit is contained in:
Gabriel Horner
2025-01-17 13:48:27 -05:00
parent fdfcc4fb1a
commit bec095ee6c

View File

@@ -3604,7 +3604,7 @@
linked-block? (or (:block/link block)
(:original-block config))]
(cond
(and (:page-title? config) (or (ldb/class? block) (ldb/property? block)))
(and (:page-title? config) (or (ldb/class? block) (ldb/property? block)) (not config/publishing?))
(let [collapsed? (state/get-block-collapsed block-id)]
(state/set-collapsed-block! block-id (if (some? collapsed?) collapsed? true)))