Skip to content

Commit

Permalink
fix: use 100% width for Puck preview when iframe disabled (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd authored Apr 3, 2024
1 parent 03ab0bd commit 64303c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/components/Puck/components/Canvas/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const Canvas = () => {
<div
className={getClassName("root")}
style={{
width: iframe.enabled ? ui.viewports.current.width : undefined,
width: iframe.enabled ? ui.viewports.current.width : "100%",
height: zoomConfig.rootHeight,
transform: iframe.enabled ? `scale(${zoomConfig.zoom})` : undefined,
transition: showTransition
Expand Down

0 comments on commit 64303c8

Please sign in to comment.