mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 15:51:37 -05:00
💄 Minor aesthetics
This commit is contained in:
parent
fad9d2fd3a
commit
d64eaab0b9
1 changed files with 9 additions and 14 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue