0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-15 11:38:24 -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 udp/IPageUpdate
ptk/UpdateEvent ptk/UpdateEvent
(update [_ state] (update [_ state]
(assoc-in state [:shapes id :proportion-lock] true))) (assoc-in state [:shapes id :proportion-lock] false)))
(defn unlock-proportions (defn unlock-proportions
[id] [id]

View file

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

View file

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

View file

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