🐛 Fix tooltips and modals.

This commit is contained in:
elhombretecla 2020-11-13 09:51:53 +01:00 committed by Andrey Antukh
parent e9dba06600
commit 447293bc4e
4 changed files with 15 additions and 12 deletions

View file

@ -164,12 +164,12 @@
[:span.counters (str (inc index) " / " total)]]
[:div.mode-zone
[:button.mode-zone-button {:on-click #(when (not= screen :viewer)
[:button.mode-zone-button.tooltip.tooltip-bottom {:on-click #(when (not= screen :viewer)
(change-screen :viewer))
:class (when (= screen :viewer) "active")} i/play]
[:button.mode-zone-button {:on-click #(when (not= screen :handoff)
:class (when (= screen :viewer) "active") :alt "View mode"} i/play]
[:button.mode-zone-button.tooltip.tooltip-bottom {:on-click #(when (not= screen :handoff)
(change-screen :handoff))
:class (when (= screen :handoff) "active")} i/code]]
:class (when (= screen :handoff) "active") :alt "Code mode"} i/code]]
[:div.options-zone
[:& interactions-menu {:interactions-mode interactions-mode}]

View file

@ -258,7 +258,7 @@
:on-zoom-fit #(st/emit! dw/zoom-to-fit-all)
:on-zoom-selected #(st/emit! dw/zoom-to-selected-shape)}]
[:a.btn-icon-dark.btn-small
[:a.btn-icon-dark.btn-small.tooltip.tooltip-bottom
{;; :target "__blank"
:alt (t locale "workspace.header.viewer")
:href (str "#" view-url)} i/play]]]))