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:
parent
b3a2ae3eb2
commit
7e203c9851
4 changed files with 4 additions and 4 deletions
|
@ -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]
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue