0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00
This commit is contained in:
Florian Schroedl 2024-05-24 10:01:13 +02:00
parent ea9d850412
commit 49d9b52b12

View file

@ -442,15 +442,15 @@
:title (tr "workspace.options.width")}
[:span {:class (stl/css :icon-text)} "W"]
[:& editable-select
{:min 0.01
{:placeholder (if (= :multiple (:rx values)) (tr "settings.multiple") "--")
:no-validate true
:min 0.01
:class (stl/css :token-select)
:disabled disabled-width-sizing?
:input-class (stl/css :numeric-input)
:no-validate true
:on-change on-width-change
:on-token-remove #(on-width-change (wtc/maybe-resolve-token-value %))
:options sizing-options
:placeholder (if (= :multiple (:rx values)) (tr "settings.multiple") "--")
:position :left
:type "number"
:value (:width values)}]]
@ -523,13 +523,13 @@
[:span {:class (stl/css :icon)} i/corner-radius]
[:& editable-select
{:placeholder (if (= :multiple (:rx values)) (tr "settings.multiple") "--")
:min 0
:class (stl/css :token-select)
:input-class (stl/css :numeric-input)
:position :right
:min 0
:on-change on-radius-1-change
:on-token-remove on-border-radius-token-unapply
:options border-radius-options
:position :right
:type "number"
:value (:rx values)}]]