diff --git a/common/src/app/common/svg.cljc b/common/src/app/common/svg.cljc index 1800a8a20..62aed04d3 100644 --- a/common/src/app/common/svg.cljc +++ b/common/src/app/common/svg.cljc @@ -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))