Skip to content

Commit

Permalink
Editor Canvas: Fix animation when device type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Dec 12, 2023
1 parent 45d7bab commit 5a11c2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/editor/src/components/editor-canvas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,12 @@ function EditorCanvas(
height="100%"
iframeProps={ {
...iframeProps,
style: { ...iframeProps?.style, ...deviceStyles },
style: {
...iframeProps?.style,
marginLeft: 'auto',
marginRight: 'auto',
...deviceStyles,
},
} }
>
{ themeSupportsLayout &&
Expand Down

0 comments on commit 5a11c2b

Please sign in to comment.