0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 15:51:37 -05:00

💄 Minor aesthetics

This commit is contained in:
Andrés Moya 2021-04-20 15:14:24 +02:00
parent fad9d2fd3a
commit d64eaab0b9

View file

@ -47,21 +47,16 @@
new-value (-> (dom/get-value input-node) new-value (-> (dom/get-value input-node)
(sm/expr-eval value))] (sm/expr-eval value))]
(when (num? new-value) (when (num? new-value)
(cond-> new-value (-> new-value
true
(math/round) (math/round)
true
(cljs.core/max us/min-safe-int) (cljs.core/max us/min-safe-int)
true
(cljs.core/min us/max-safe-int) (cljs.core/min us/max-safe-int)
(cond->
(num? min-val) (num? min-val)
(cljs.core/max min-val) (cljs.core/max min-val)
(num? max-val) (num? max-val)
(cljs.core/min max-val)))))) (cljs.core/min max-val)))))))
update-input update-input
(mf/use-callback (mf/use-callback