0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-26 16:39:49 -05:00

Merge pull request #3579 from penpot/eva-refix-lock-title

🐛 Fix lock and hide tooltip
This commit is contained in:
Alejandro 2023-08-31 11:38:51 +02:00 committed by GitHub
commit 203c0ed87d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -336,10 +336,16 @@
[:div.element-actions {:class (when (:shapes item) "is-parent")}
[:div.toggle-element {:class (when (:hidden item) "selected")
:title (if (:hidden item)
(tr "workspace.shape.menu.show")
(tr "workspace.shape.menu.hide"))
:on-click toggle-visibility}
(if (:hidden item) i/eye-closed i/eye)]
[:div.block-element {:class (when (:blocked item) "selected")
:on-click toggle-blocking}
:on-click toggle-blocking
:title (if (:blocked item)
(tr "workspace.shape.menu.unlock")
(tr "workspace.shape.menu.lock"))}
(if (:blocked item) i/lock i/unlock)]]
(when (:shapes item)