Skip to content

Commit

Permalink
fix: Create a distinct containing block for each breakpoint canvas
Browse files Browse the repository at this point in the history
To avoid positioned elements leaking out of the container when all breakpoints are visible.

Previously, whole canvas container was getting considered as the containing block for all elements which is why any fixed element with relative widths were off when all the breakpoints were switched on.

closes: #287
  • Loading branch information
surajshetty3416 committed Jan 10, 2025
1 parent 283463d commit 0511903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/BuilderCanvas.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</div>
</div>
<div
class="canvas relative flex h-full rounded-md bg-surface-white shadow-2xl"
class="canvas relative flex h-full rounded-md bg-surface-white shadow-2xl contain-layout"
:style="{
...canvasStyles,
background: canvasProps.background,
Expand Down

0 comments on commit 0511903

Please sign in to comment.