mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 04:38:14 +00:00
🐛 Ignore style attr on fix-percents function
This commit is contained in:
parent
8cc3669aac
commit
fc0a4fa5b7
@ -993,15 +993,7 @@
|
||||
(fix-percent-attr-numeric [attrs key val]
|
||||
(cond
|
||||
(= key :style)
|
||||
(let [val (->> (str/split val ";")
|
||||
(map (fn [val]
|
||||
(if (str/ends-with? val "%")
|
||||
(let [[k v] (str/split val ":" 2)
|
||||
v (fix-percent-attr-numeric-val v)]
|
||||
(str k ":" v))
|
||||
val)))
|
||||
(str/join ";"))]
|
||||
(assoc attrs key val))
|
||||
attrs
|
||||
|
||||
(str/ends-with? val "%")
|
||||
(assoc attrs key (fix-percent-attr-numeric-val val))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user