0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 07:11:32 -05:00

🐛 Add additional fix to fix-percents function on svg parse

This commit is contained in:
Andrey Antukh 2024-01-31 09:06:51 +01:00
parent b6d53c9ded
commit 43c13ed432

View file

@ -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))