From fc0a4fa5b7a6c927dee90714fb3d8f7e329913df Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 30 Jan 2024 16:49:18 +0100 Subject: [PATCH] :bug: Ignore style attr on fix-percents function --- common/src/app/common/svg.cljc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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))