From 0074c5a5001873047567162899a6f84f0b455563 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Tue, 29 Aug 2023 21:25:41 +0900 Subject: [PATCH] Post Editor: Fix browser console error when changing device preview mode (#53969) --- packages/edit-post/src/components/visual-editor/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/edit-post/src/components/visual-editor/index.js b/packages/edit-post/src/components/visual-editor/index.js index 88fc233e0f74d4..fb764b967e67d5 100644 --- a/packages/edit-post/src/components/visual-editor/index.js +++ b/packages/edit-post/src/components/visual-editor/index.js @@ -180,7 +180,8 @@ export default function VisualEditor( { styles } ) { const desktopCanvasStyles = { height: '100%', width: '100%', - margin: 0, + marginLeft: 'auto', + marginRight: 'auto', display: 'flex', flexFlow: 'column', // Default background color so that grey