mirror of https://github.com/logseq/logseq
parent
8cc4b357a4
commit
9b82162038
|
@ -1560,7 +1560,9 @@
|
||||||
(if collapsed?
|
(if collapsed?
|
||||||
(editor-handler/expand-block! uuid)
|
(editor-handler/expand-block! uuid)
|
||||||
(editor-handler/collapse-block! uuid))))}
|
(editor-handler/collapse-block! uuid))))}
|
||||||
[:span {:class (if control-show? "control-show cursor-pointer" "control-hide")}
|
[:span {:class (if (or collapsed?
|
||||||
|
(and control-show?
|
||||||
|
(editor-handler/collapsable? uuid {:semantic? true}))) "control-show cursor-pointer" "control-hide")}
|
||||||
(ui/rotating-arrow collapsed?)]]
|
(ui/rotating-arrow collapsed?)]]
|
||||||
(let [bullet [:a {:on-click (fn [event]
|
(let [bullet [:a {:on-click (fn [event]
|
||||||
(bullet-on-click event block uuid))}
|
(bullet-on-click event block uuid))}
|
||||||
|
@ -2309,10 +2311,7 @@
|
||||||
[uuid e *control-show? block-id doc-mode?]
|
[uuid e *control-show? block-id doc-mode?]
|
||||||
(when-not @*dragging?
|
(when-not @*dragging?
|
||||||
(util/stop e)
|
(util/stop e)
|
||||||
(when (or
|
(reset! *control-show? true)
|
||||||
(model/block-collapsed? uuid)
|
|
||||||
(editor-handler/collapsable? uuid {:semantic? true}))
|
|
||||||
(reset! *control-show? true))
|
|
||||||
(when-let [parent (gdom/getElement block-id)]
|
(when-let [parent (gdom/getElement block-id)]
|
||||||
(let [node (.querySelector parent ".bullet-container")]
|
(let [node (.querySelector parent ".bullet-container")]
|
||||||
(when doc-mode?
|
(when doc-mode?
|
||||||
|
|
Loading…
Reference in New Issue