mirror of
https://github.com/penpot/penpot.git
synced 2025-05-14 09:16:44 +02:00
🐛 Fix problems with position absolute and code generation
This commit is contained in:
parent
ee8f071025
commit
7ee685ca18
5 changed files with 35 additions and 27 deletions
|
@ -72,7 +72,9 @@
|
|||
page-id (:page-id (:query-params route))
|
||||
flex-items (get-flex-elements page-id shapes from)
|
||||
objects (get-objects from)
|
||||
shapes (map #(assoc % :flex-items flex-items) shapes)
|
||||
shapes (->> shapes
|
||||
(map #(assoc % :parent (get objects (:parent-id %))))
|
||||
(map #(assoc % :flex-items flex-items)))
|
||||
style-code (-> (cg/generate-style-code @style-type shapes)
|
||||
(format-code "css"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue