mirror of https://github.com/logseq/logseq
fix: show bullets for collapsable property block values
parent
58cf9f8411
commit
edef1ea6e6
|
@ -2344,7 +2344,7 @@
|
||||||
(-> block (dissoc :block/children :block/page)))]
|
(-> block (dissoc :block/children :block/page)))]
|
||||||
|
|
||||||
(if (and (:property-block? config) (:hide-bullet? config) (string/blank? (:block/content block)))
|
(if (and (:property-block? config) (:hide-bullet? config) (string/blank? (:block/content block)))
|
||||||
[:div.opacity-50.text-sm "Empty"]
|
[:div.opacity-50.text-sm.h-6 "Empty"]
|
||||||
(let [title-collapse-enabled? (:outliner/block-title-collapse-enabled? (state/get-config))]
|
(let [title-collapse-enabled? (:outliner/block-title-collapse-enabled? (state/get-config))]
|
||||||
(when (and (not block-ref-with-title?)
|
(when (and (not block-ref-with-title?)
|
||||||
(seq body)
|
(seq body)
|
||||||
|
|
|
@ -386,7 +386,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.block-main-container {
|
.block-main-container {
|
||||||
min-height: 26px;
|
min-height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ls-block {
|
.ls-block {
|
||||||
|
|
|
@ -466,13 +466,15 @@
|
||||||
[:div.text-sm.opacity-70 "loading"]
|
[:div.text-sm.opacity-70 "loading"]
|
||||||
(let [children (model/sort-by-left
|
(let [children (model/sort-by-left
|
||||||
(:block/_parent (db/entity (:db/id parent)))
|
(:block/_parent (db/entity (:db/id parent)))
|
||||||
parent)]
|
parent)
|
||||||
|
hide-bullet? (and (= (count children) 1)
|
||||||
|
(not (editor-handler/collapsable? (:block/uuid (first children)))))]
|
||||||
(if (seq children)
|
(if (seq children)
|
||||||
[:div.property-block-container.content.flex.flex-1
|
[:div.property-block-container.content.flex.flex-1
|
||||||
(block-cp children {:id (str (:block/uuid parent))
|
(block-cp children {:id (str (:block/uuid parent))
|
||||||
:editor-box editor-box
|
:editor-box editor-box
|
||||||
:property-block? true
|
:property-block? true
|
||||||
:hide-bullet? (= (count children) 1)
|
:hide-bullet? hide-bullet?
|
||||||
:closed-values? closed-values?})]
|
:closed-values? closed-values?})]
|
||||||
(property-empty-value)))))
|
(property-empty-value)))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue