0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-24 13:41:39 -05:00

🐛 Fix viewer

This commit is contained in:
Alejandro Alonso 2023-08-21 14:15:41 +02:00 committed by Andrey Antukh
parent 0ce838fbb6
commit 5ea9a52e69

View file

@ -468,13 +468,13 @@
(mf/with-memo [objects]
(svg-raw-container-factory objects all-objects))]
(when (and shape (not (:hidden shape)))
(let [shape (-> shape
#_(gsh/transform-shape)
(gsh/translate-to-frame frame))
opts #js {:shape shape
:objects objects
:all-objects all-objects}]
(let [shape (if frame
(gsh/translate-to-frame shape frame)
shape)
opts #js {:shape shape
:objects objects
:all-objects all-objects}]
(case (:type shape)
:frame [:> frame-container opts]
:text [:> text-wrapper opts]