From 3218669c99d6688490871237183bdaaec7228300 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 7 Feb 2023 09:04:37 +0100 Subject: [PATCH] Fix some weird paddings --- packages/edit-site/src/components/layout/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/layout/index.js b/packages/edit-site/src/components/layout/index.js index bd06486ff7c5b9..a216e46186336e 100644 --- a/packages/edit-site/src/components/layout/index.js +++ b/packages/edit-site/src/components/layout/index.js @@ -95,7 +95,9 @@ export default function Layout() { ( isMobileViewport && isEditorPage && canvasMode === 'edit' ) || ! isMobileViewport || ! isEditorPage; - const showFrame = ! isEditorPage || ( ! isMobileViewport && isEditorPage ); + const showFrame = + ( ! isEditorPage && ! isMobileViewport ) || + ( ! isMobileViewport && isEditorPage && canvasMode === 'view' ); const isFullCanvas = ( isMobileViewport && isListPage ) || ( isEditorPage && canvasMode === 'edit' );