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