mirror of https://github.com/logseq/logseq
fix: display tags for blocks too
parent
3af4b7e530
commit
11ad914f27
|
@ -2282,11 +2282,12 @@
|
||||||
|
|
||||||
(rum/defc tags
|
(rum/defc tags
|
||||||
[config block]
|
[config block]
|
||||||
[:div.flex.flex-row.flex-wrap.items-center.ml-4.gap-1
|
(when (seq (:block/tags block))
|
||||||
(for [tag (:block/tags block)]
|
[:div.flex.flex-row.flex-wrap.items-center.ml-4.gap-1
|
||||||
(page-cp (assoc config
|
(for [tag (:block/tags block)]
|
||||||
:tag? true
|
(page-cp (assoc config
|
||||||
:disable-preview? true) tag))])
|
:tag? true
|
||||||
|
:disable-preview? true) tag))]))
|
||||||
|
|
||||||
(rum/defc block-content < rum/reactive
|
(rum/defc block-content < rum/reactive
|
||||||
[config {:block/keys [uuid content properties scheduled deadline format pre-block?] :as block} edit-input-id block-id slide? selected?]
|
[config {:block/keys [uuid content properties scheduled deadline format pre-block?] :as block} edit-input-id block-id slide? selected?]
|
||||||
|
@ -2340,19 +2341,21 @@
|
||||||
"Large block will not be editable or searchable to not slow down the app, please use another editor to edit this block."])
|
"Large block will not be editable or searchable to not slow down the app, please use another editor to edit this block."])
|
||||||
[:div.flex.flex-row.justify-between.block-content-inner
|
[:div.flex.flex-row.justify-between.block-content-inner
|
||||||
(when-not plugin-slotted?
|
(when-not plugin-slotted?
|
||||||
[:div.flex-1.w-full
|
(let [block-tags (:block/tags block)]
|
||||||
(cond
|
[:div.flex-1.w-full
|
||||||
(:block/name block)
|
[:div.flex.flex-1.w-full.flex-row.flex-wrap.justify-between.items-center
|
||||||
[:div.flex.flex-1.flex-row.flex-wrap.justify-between.items-center
|
(cond
|
||||||
(page-cp config block)
|
(:block/name block)
|
||||||
(when (seq (:block/tags block))
|
(page-cp config block)
|
||||||
(tags config block))]
|
|
||||||
|
|
||||||
(or (seq title) (:block/marker block))
|
(or (seq title) (:block/marker block))
|
||||||
(build-block-title config block)
|
(build-block-title config block)
|
||||||
|
|
||||||
:else
|
:else
|
||||||
nil)])
|
nil)
|
||||||
|
|
||||||
|
(when (seq block-tags)
|
||||||
|
(tags config block))]]))
|
||||||
|
|
||||||
(clock-summary-cp block body)]
|
(clock-summary-cp block body)]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue