mirror of
https://github.com/penpot/penpot.git
synced 2026-05-02 22:58:35 +00:00
♻️ Improve a case
This commit is contained in:
parent
aa3438f800
commit
e7ddd6055f
@ -67,11 +67,11 @@
|
||||
(let [sizing (if (= type :width)
|
||||
(:layout-item-h-sizing shape)
|
||||
(:layout-item-v-sizing shape))]
|
||||
(if (string? value)
|
||||
value
|
||||
(if (= sizing :fill)
|
||||
"100%"
|
||||
(str (format-pixels value))))))
|
||||
(cond
|
||||
(= sizing :fill) "100%"
|
||||
(= sizing :auto) "auto"
|
||||
(number? value) (format-pixels value)
|
||||
:else value)))
|
||||
|
||||
(defn format-padding
|
||||
[padding-values type]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user