|
@@ -2505,7 +2505,7 @@
|
|
|
|
|
|
(rum/defc breadcrumb-fragment
|
|
(rum/defc breadcrumb-fragment
|
|
[config block label opts]
|
|
[config block label opts]
|
|
- [:a {:on-mouse-down
|
|
|
|
|
|
+ [:a {:on-mouse-up
|
|
(fn [e]
|
|
(fn [e]
|
|
(cond
|
|
(cond
|
|
(gobj/get e "shiftKey")
|
|
(gobj/get e "shiftKey")
|
|
@@ -2570,13 +2570,14 @@
|
|
content)
|
|
content)
|
|
config (assoc config :block/uuid uuid)]
|
|
config (assoc config :block/uuid uuid)]
|
|
[block
|
|
[block
|
|
- (if (seq title)
|
|
|
|
- (->elem :span (map-inline config title))
|
|
|
|
- (->elem :div (markup-elements-cp config body)))]))))
|
|
|
|
|
|
+ (when title
|
|
|
|
+ (if (seq title)
|
|
|
|
+ (->elem :span (map-inline config title))
|
|
|
|
+ (->elem :div (markup-elements-cp config body))))]))))
|
|
breadcrumb (->> (into [] parents-props)
|
|
breadcrumb (->> (into [] parents-props)
|
|
(concat [page-name-props] (when more? [:more]))
|
|
(concat [page-name-props] (when more? [:more]))
|
|
(filterv identity)
|
|
(filterv identity)
|
|
- (map (fn [x] (if (vector? x)
|
|
|
|
|
|
+ (map (fn [x] (if (and (vector? x) (second x))
|
|
(let [[block label] x]
|
|
(let [[block label] x]
|
|
(rum/with-key (breadcrumb-fragment config block label opts) (:block/uuid block)))
|
|
(rum/with-key (breadcrumb-fragment config block label opts) (:block/uuid block)))
|
|
[:span.opacity-70 "⋯"])))
|
|
[:span.opacity-70 "⋯"])))
|