From 49d9b52b121c3c2ac007eb7938d412fd4daabc1f Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Fri, 24 May 2024 10:01:13 +0200 Subject: [PATCH] Cleanup --- .../ui/workspace/sidebar/options/menus/measures.cljs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs index 6bcebe572..ec4ea3804 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs @@ -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)}]]