From 99caeefa16bdbd3415ce22a6a5786327045a3fe2 Mon Sep 17 00:00:00 2001 From: Marin Atanasov <8436925+tyxla@users.noreply.github.com> Date: Tue, 22 Oct 2024 13:58:04 +0300 Subject: [PATCH] Edit Site: Fix canvasMode var --- .../edit-site/src/components/layout/index.js | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/packages/edit-site/src/components/layout/index.js b/packages/edit-site/src/components/layout/index.js index 3b9769d470f51..12799f46fbe34 100644 --- a/packages/edit-site/src/components/layout/index.js +++ b/packages/edit-site/src/components/layout/index.js @@ -170,18 +170,16 @@ export default function Layout( { route } ) { ) } - { ! isMobileViewport && - areas.edit && - canvasMode !== 'edit' && ( -
- { areas.edit } -
- ) } + { ! isMobileViewport && areas.edit && canvas !== 'edit' && ( +
+ { areas.edit } +
+ ) } { ! isMobileViewport && areas.preview && (