🐛 Fix problems with position absolute and code generation

This commit is contained in:
alonso.torres 2023-05-19 10:57:10 +02:00 committed by Eva
parent ee8f071025
commit 7ee685ca18
5 changed files with 35 additions and 27 deletions

View file

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