-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When switching to Preview mode or generating a PDF, the layout and styles of custom components do not match what is shown in the canvas editor.
Some components overlap each other.
Styles (spacing, font, positioning) appear different from canvas view.
Generated PDF output is not visually consistent with what the user built.
This issue makes it difficult to trust the preview/export feature since the final result looks broken compared to the design canvas.
Steps to reproduce
1.Add custom components inside the canvas.
2.Click Preview or export as PDF.
3.Compare with canvas design.
Expected behavior
- Preview should display components exactly as arranged in the canvas.
- PDF export should keep the same styles (spacing, fonts, alignment, layout).
- No overlapping of components.
What is actually happening?
- Some components overlap or shift from their original positions.
- Styles like spacing, font, alignment, or responsiveness look different.
- Final PDF/preview layout does not match the canvas layout.
Screenshots
Any additional comments?
Possible Cause:-
- Styles are being recomputed or lost when generating preview/PDF.
- Only a limited set of CSS properties are being captured (not full computed styles).
- Dynamic styles from libraries like MUI (with generated class names, pseudo-classes, responsive rules) are not preserved.
- getComputedStyle usage doesn’t capture pseudo-elements, media queries, or all inherited styles.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working