Skip to content

Commit

Permalink
enhance(ui): only display block controls when hovering
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Jun 10, 2022
1 parent 271ceb9 commit 23e4658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/frontend/components/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1560,8 +1560,8 @@
(if collapsed?
(editor-handler/expand-block! uuid)
(editor-handler/collapse-block! uuid))))}
[:span {:class (if (or collapsed?
(and control-show?
[:span {:class (if (and control-show?
(or collapsed?
(editor-handler/collapsable? uuid {:semantic? true}))) "control-show cursor-pointer" "control-hide")}
(ui/rotating-arrow collapsed?)]]
(let [bullet [:a {:on-click (fn [event]
Expand Down

0 comments on commit 23e4658

Please sign in to comment.