mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 11:56:12 +02:00
✨ Import components
This commit is contained in:
parent
7d14122746
commit
85a6edb1fd
5 changed files with 60 additions and 21 deletions
|
@ -173,6 +173,10 @@
|
|||
(map #(:attrs %))
|
||||
(reduce add-attrs node-attrs)))
|
||||
|
||||
(= type :frame)
|
||||
(let [svg-node (->> node :content (d/seek #(= "frame-background" (get-in % [:attrs :class]))))]
|
||||
(merge (add-attrs {} (:attrs svg-node)) node-attrs))
|
||||
|
||||
(= type :svg-raw)
|
||||
(->> node :content last)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue