From 43c13ed432b20eb28b3b4d2385b7b4727fc0e508 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 31 Jan 2024 09:06:51 +0100 Subject: [PATCH] :bug: Add additional fix to fix-percents function on svg parse --- common/src/app/common/svg.cljc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/app/common/svg.cljc b/common/src/app/common/svg.cljc index 62aed04d3b..d400f01f1a 100644 --- a/common/src/app/common/svg.cljc +++ b/common/src/app/common/svg.cljc @@ -995,6 +995,9 @@ (= key :style) attrs + (str/starts-with? (d/name key) "data-") + attrs + (str/ends-with? val "%") (assoc attrs key (fix-percent-attr-numeric-val val))