0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Add tooltip to not editable multiselect-nav

This commit is contained in:
mathieu.brunot 2019-02-21 23:13:23 +01:00
parent 5c0ec6f7c1
commit 77eac9e1b7
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0
3 changed files with 22 additions and 12 deletions

View file

@ -225,15 +225,16 @@
;; if editable
[:div.multiselect-nav {}
[:span.move-item.tooltip.tooltip-top
{:on-click on-toggle-copy :alt (tr "ds.multiselect-bar.copy")}
{:alt (tr "ds.multiselect-bar.copy")
:on-click on-toggle-copy}
(when (:show-copy-tooltip @local)
(grid-options-tooltip :selected id
:title (tr "ds.multiselect-bar.copy-to-library")
:on-select on-copy))
i/copy]
[:span.move-item.tooltip.tooltip-top
{:on-click on-toggle-move :alt (tr "ds.multiselect-bar.move")}
{:alt (tr "ds.multiselect-bar.move")
:on-click on-toggle-move}
(when (:show-move-tooltip @local)
(grid-options-tooltip :selected id
:title (tr "ds.multiselect-bar.move-to-library")
@ -247,7 +248,8 @@
;; if not editable
[:div.multiselect-nav {}
[:span.move-item.tooltip.tooltip-top
{:on-click on-toggle-copy}
{:alt (tr "ds.multiselect-bar.copy")
:on-click on-toggle-copy}
(when (:show-copy-tooltip @local)
(grid-options-tooltip :selected id
:title (tr "ds.multiselect-bar.copy-to-library")

View file

@ -288,14 +288,16 @@
(if editable?
[:div.multiselect-nav {}
[:span.move-item.tooltip.tooltip-top
{:on-click on-toggle-copy :alt (tr "ds.multiselect-bar.copy")}
{:alt (tr "ds.multiselect-bar.copy")
:on-click on-toggle-copy}
(when (:show-copy-tooltip @local)
(grid-options-tooltip :selected id
:title (tr "ds.multiselect-bar.copy-to-library")
:on-select on-copy))
i/copy]
[:span.move-item.tooltip.tooltip-top
{:on-click on-toggle-move :alt (tr "ds.multiselect-bar.move")}
{:alt (tr "ds.multiselect-bar.move")
:on-click on-toggle-move}
(when (:show-move-tooltip @local)
(grid-options-tooltip :selected id
:title (tr "ds.multiselect-bar.move-to-library")
@ -310,9 +312,12 @@
{:alt (tr "ds.multiselect-bar.delete")
:on-click on-delete}
i/trash]]
;; if not editable
[:div.multiselect-nav
[:span.move-item.tooltip.tooltip-top
{:on-click on-toggle-copy}
{:alt (tr "ds.multiselect-bar.copy")
:on-click on-toggle-copy}
(when (:show-copy-tooltip @local)
(grid-options-tooltip :selected id
:title (tr "ds.multiselect-bar.copy-to-library")

View file

@ -290,14 +290,16 @@
;; If editable
[:div.multiselect-nav {}
[:span.move-item.tooltip.tooltip-top
{:on-click on-toggle-copy :alt (tr "ds.multiselect-bar.copy")}
{:alt (tr "ds.multiselect-bar.copy")
:on-click on-toggle-copy}
(when (:show-copy-tooltip @local)
(grid-options-tooltip :selected id
:title (tr "ds.multiselect-bar.copy-to-library")
:on-select on-copy))
:title (tr "ds.multiselect-bar.copy-to-library")
:on-select on-copy))
^:inline i/copy]
[:span.move-item.tooltip.tooltip-top
{:on-click on-toggle-move :alt (tr "ds.multiselect-bar.move")}
{:alt (tr "ds.multiselect-bar.move")
:on-click on-toggle-move}
(when (:show-move-tooltip @local)
(grid-options-tooltip :selected id
:title (tr "ds.multiselect-bar.move-to-library")
@ -316,7 +318,8 @@
;; If not editable
[:div.multiselect-nav {}
[:span.move-item.tooltip.tooltip-top
{:on-click on-toggle-copy}
{:alt (tr "ds.multiselect-bar.copy")
:on-click on-toggle-copy}
(when (:show-copy-tooltip @local)
(grid-options-tooltip :selected id
:title (tr "ds.multiselect-bar.copy-to-library")