mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
🐛 Add tooltip to not editable multiselect-nav
This commit is contained in:
parent
5c0ec6f7c1
commit
77eac9e1b7
3 changed files with 22 additions and 12 deletions
|
@ -225,15 +225,16 @@
|
||||||
;; if editable
|
;; if editable
|
||||||
[:div.multiselect-nav {}
|
[:div.multiselect-nav {}
|
||||||
[:span.move-item.tooltip.tooltip-top
|
[: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)
|
(when (:show-copy-tooltip @local)
|
||||||
(grid-options-tooltip :selected id
|
(grid-options-tooltip :selected id
|
||||||
:title (tr "ds.multiselect-bar.copy-to-library")
|
:title (tr "ds.multiselect-bar.copy-to-library")
|
||||||
:on-select on-copy))
|
:on-select on-copy))
|
||||||
|
|
||||||
i/copy]
|
i/copy]
|
||||||
[:span.move-item.tooltip.tooltip-top
|
[: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)
|
(when (:show-move-tooltip @local)
|
||||||
(grid-options-tooltip :selected id
|
(grid-options-tooltip :selected id
|
||||||
:title (tr "ds.multiselect-bar.move-to-library")
|
:title (tr "ds.multiselect-bar.move-to-library")
|
||||||
|
@ -247,7 +248,8 @@
|
||||||
;; if not editable
|
;; if not editable
|
||||||
[:div.multiselect-nav {}
|
[:div.multiselect-nav {}
|
||||||
[:span.move-item.tooltip.tooltip-top
|
[: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)
|
(when (:show-copy-tooltip @local)
|
||||||
(grid-options-tooltip :selected id
|
(grid-options-tooltip :selected id
|
||||||
:title (tr "ds.multiselect-bar.copy-to-library")
|
:title (tr "ds.multiselect-bar.copy-to-library")
|
||||||
|
|
|
@ -288,14 +288,16 @@
|
||||||
(if editable?
|
(if editable?
|
||||||
[:div.multiselect-nav {}
|
[:div.multiselect-nav {}
|
||||||
[:span.move-item.tooltip.tooltip-top
|
[: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)
|
(when (:show-copy-tooltip @local)
|
||||||
(grid-options-tooltip :selected id
|
(grid-options-tooltip :selected id
|
||||||
:title (tr "ds.multiselect-bar.copy-to-library")
|
:title (tr "ds.multiselect-bar.copy-to-library")
|
||||||
:on-select on-copy))
|
:on-select on-copy))
|
||||||
i/copy]
|
i/copy]
|
||||||
[:span.move-item.tooltip.tooltip-top
|
[: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)
|
(when (:show-move-tooltip @local)
|
||||||
(grid-options-tooltip :selected id
|
(grid-options-tooltip :selected id
|
||||||
:title (tr "ds.multiselect-bar.move-to-library")
|
:title (tr "ds.multiselect-bar.move-to-library")
|
||||||
|
@ -310,9 +312,12 @@
|
||||||
{:alt (tr "ds.multiselect-bar.delete")
|
{:alt (tr "ds.multiselect-bar.delete")
|
||||||
:on-click on-delete}
|
:on-click on-delete}
|
||||||
i/trash]]
|
i/trash]]
|
||||||
|
|
||||||
|
;; if not editable
|
||||||
[:div.multiselect-nav
|
[:div.multiselect-nav
|
||||||
[:span.move-item.tooltip.tooltip-top
|
[: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)
|
(when (:show-copy-tooltip @local)
|
||||||
(grid-options-tooltip :selected id
|
(grid-options-tooltip :selected id
|
||||||
:title (tr "ds.multiselect-bar.copy-to-library")
|
:title (tr "ds.multiselect-bar.copy-to-library")
|
||||||
|
|
|
@ -290,14 +290,16 @@
|
||||||
;; If editable
|
;; If editable
|
||||||
[:div.multiselect-nav {}
|
[:div.multiselect-nav {}
|
||||||
[:span.move-item.tooltip.tooltip-top
|
[: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)
|
(when (:show-copy-tooltip @local)
|
||||||
(grid-options-tooltip :selected id
|
(grid-options-tooltip :selected id
|
||||||
:title (tr "ds.multiselect-bar.copy-to-library")
|
:title (tr "ds.multiselect-bar.copy-to-library")
|
||||||
:on-select on-copy))
|
:on-select on-copy))
|
||||||
^:inline i/copy]
|
^:inline i/copy]
|
||||||
[:span.move-item.tooltip.tooltip-top
|
[: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)
|
(when (:show-move-tooltip @local)
|
||||||
(grid-options-tooltip :selected id
|
(grid-options-tooltip :selected id
|
||||||
:title (tr "ds.multiselect-bar.move-to-library")
|
:title (tr "ds.multiselect-bar.move-to-library")
|
||||||
|
@ -316,7 +318,8 @@
|
||||||
;; If not editable
|
;; If not editable
|
||||||
[:div.multiselect-nav {}
|
[:div.multiselect-nav {}
|
||||||
[:span.move-item.tooltip.tooltip-top
|
[: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)
|
(when (:show-copy-tooltip @local)
|
||||||
(grid-options-tooltip :selected id
|
(grid-options-tooltip :selected id
|
||||||
:title (tr "ds.multiselect-bar.copy-to-library")
|
:title (tr "ds.multiselect-bar.copy-to-library")
|
||||||
|
|
Loading…
Reference in a new issue