0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 10:38:13 -05:00

Show unlock icon when shape proportions are not locked.

This commit is contained in:
Andrey Antukh 2017-03-02 16:20:21 +01:00
parent b3a2ae3eb2
commit 7e203c9851
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
4 changed files with 4 additions and 4 deletions

View file

@ -333,7 +333,7 @@
udp/IPageUpdate
ptk/UpdateEvent
(update [_ state]
(assoc-in state [:shapes id :proportion-lock] true)))
(assoc-in state [:shapes id :proportion-lock] false)))
(defn unlock-proportions
[id]

View file

@ -63,7 +63,7 @@
[:div.lock-size
{:class (when (:proportion-lock shape) "selected")
:on-click on-proportion-lock-change}
i/lock]
(if (:proportion-lock shape) i/lock i/unlock)]
[:div.input-element.pixels
[:input.input-text
{:placeholder "Height"

View file

@ -64,7 +64,7 @@
[:div.lock-size
{:class (when (:proportion-lock shape) "selected")
:on-click on-proportion-lock-change}
i/lock]
(if (:proportion-lock shape) i/lock i/unlock)]
[:div.input-element.pixels
[:input.input-text
{:placeholder "Height"

View file

@ -58,7 +58,7 @@
[:div.lock-size
{:class (when (:proportion-lock shape) "selected")
:on-click on-proportion-lock-change}
i/lock]
(if (:proportion-lock shape) i/lock i/unlock)]
[:div.input-element.pixels
[:input.input-text
{:placeholder "Height"