|
|
@@ -2691,10 +2691,14 @@
|
|
|
(rum/local false ::hover-container?)
|
|
|
[state block tag config popup-opts]
|
|
|
(let [*hover? (::hover? state)
|
|
|
- *hover-container? (::hover-container? state)]
|
|
|
+ *hover-container? (::hover-container? state)
|
|
|
+ private-tag? (ldb/private-tags (:db/ident tag))]
|
|
|
[:div.block-tag.items-center.relative
|
|
|
{:key (str "tag-" (:db/id tag))
|
|
|
- :class (if @*hover? "bg-gray-03 rounded pr-1" "pl-2 pr-1")
|
|
|
+ :class (if @*hover?
|
|
|
+ (str "bg-gray-03 rounded "
|
|
|
+ (if private-tag? "px-1" "pr-1"))
|
|
|
+ "pl-2 pr-1")
|
|
|
:on-mouse-over #(reset! *hover-container? true)
|
|
|
:on-mouse-out #(reset! *hover-container? false)}
|
|
|
[:div.flex.items-center
|
|
|
@@ -2722,7 +2726,7 @@
|
|
|
:on-click #(db-property-handler/delete-property-value! (:db/id block) :block/tags (:db/id tag))}
|
|
|
"Remove tag"))])
|
|
|
popup-opts))}
|
|
|
- (if (and @*hover? (not (ldb/private-tags (:db/ident tag))))
|
|
|
+ (if (and @*hover? (not private-tag?))
|
|
|
[:a.inline-flex.text-muted-foreground
|
|
|
{:title "Remove this tag"
|
|
|
:style {:margin-top 1
|