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:
Konstantinos
2023-03-25 04:40:58 +02:00
committed by GitHub
parent 011860e486
commit b5494f33cc
5 changed files with 12 additions and 9 deletions

View File

@@ -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 "⋯"])))