0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 14:39:45 -05:00

🐛 Fix SVG attrs are not handled correctly when exporting/importing .zip

This commit is contained in:
Alejandro Alonso 2024-06-14 06:31:15 +02:00 committed by Andrey Antukh
parent 68741bb56f
commit 2c506fc721
2 changed files with 2 additions and 1 deletions

View file

@ -44,6 +44,7 @@
- Fix toolbar keeps hiding when click outside workspace [Taiga #7776](https://tree.taiga.io/project/penpot/issue/7776)
- Fix open overlay relative to a frame [Taiga #7563](https://tree.taiga.io/project/penpot/issue/7563)
- Workspace-palette items stay hidden when opening with keyboard-shortcut [Taiga #7489](https://tree.taiga.io/project/penpot/issue/7489)
- Fix SVG attrs are not handled correctly when exporting/importing in .zip [Taiga #7920](https://tree.taiga.io/project/penpot/issue/7920)
## 2.0.3

View file

@ -263,7 +263,7 @@
[:*
(when (contains? shape :svg-attrs)
(let [svg-transform (get shape :svg-transform)
svg-attrs (->> shape :svg-attrs keys (mapv d/name) (str/join ","))
svg-attrs (->> shape :svg-attrs keys (mapv (comp d/name str/kebab)) (str/join ","))
svg-defs (->> shape :svg-defs keys (mapv d/name) (str/join ","))]
[:> "penpot:svg-import"
#js {:penpot:svg-attrs (when-not (empty? svg-attrs) svg-attrs)