mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
♻️ Improve a case
This commit is contained in:
parent
aa3438f800
commit
e7ddd6055f
1 changed files with 5 additions and 5 deletions
|
@ -67,11 +67,11 @@
|
||||||
(let [sizing (if (= type :width)
|
(let [sizing (if (= type :width)
|
||||||
(:layout-item-h-sizing shape)
|
(:layout-item-h-sizing shape)
|
||||||
(:layout-item-v-sizing shape))]
|
(:layout-item-v-sizing shape))]
|
||||||
(if (string? value)
|
(cond
|
||||||
value
|
(= sizing :fill) "100%"
|
||||||
(if (= sizing :fill)
|
(= sizing :auto) "auto"
|
||||||
"100%"
|
(number? value) (format-pixels value)
|
||||||
(str (format-pixels value))))))
|
:else value)))
|
||||||
|
|
||||||
(defn format-padding
|
(defn format-padding
|
||||||
[padding-values type]
|
[padding-values type]
|
||||||
|
|
Loading…
Reference in a new issue