mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 07:35:01 +00:00
Fix (Whiteboards): An attempt to fix most of the remaining issues (#8893)
* Revert "enhance: clear selection ranges"
This reverts commit cb2c1f1d6a.
* fix: untitled name crash on click
* fix: breadcrumb without label
* fix: maintain original page name
* fix: revert shape to block change
* fix: allow toolbar scrolling
* fix: remove overflow from context bar
This commit is contained in:
@@ -2505,7 +2505,7 @@
|
||||
|
||||
(rum/defc breadcrumb-fragment
|
||||
[config block label opts]
|
||||
[:a {:on-mouse-down
|
||||
[:a {:on-mouse-up
|
||||
(fn [e]
|
||||
(cond
|
||||
(gobj/get e "shiftKey")
|
||||
@@ -2570,13 +2570,14 @@
|
||||
content)
|
||||
config (assoc config :block/uuid uuid)]
|
||||
[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)
|
||||
(concat [page-name-props] (when more? [:more]))
|
||||
(filterv identity)
|
||||
(map (fn [x] (if (vector? x)
|
||||
(map (fn [x] (if (and (vector? x) (second x))
|
||||
(let [[block label] x]
|
||||
(rum/with-key (breadcrumb-fragment config block label opts) (:block/uuid block)))
|
||||
[:span.opacity-70 "⋯"])))
|
||||
|
||||
Reference in New Issue
Block a user