Skip to content

Commit 0511903

Browse files
fix: Create a distinct containing block for each breakpoint canvas
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
1 parent 283463d commit 0511903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/BuilderCanvas.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</div>
3838
</div>
3939
<div
40-
class="canvas relative flex h-full rounded-md bg-surface-white shadow-2xl"
40+
class="canvas relative flex h-full rounded-md bg-surface-white shadow-2xl contain-layout"
4141
:style="{
4242
...canvasStyles,
4343
background: canvasProps.background,

0 commit comments

Comments
 (0)