From a09f124c4b90a3cbe5b193f796fa29e4d9b8b4fa Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Wed, 28 Jun 2023 10:50:48 +0100 Subject: [PATCH] Make the entire preview clickable in order to enter "edit" mode in focus mode (#51973) --- .../edit-site/src/components/block-editor/editor-canvas.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/block-editor/editor-canvas.js b/packages/edit-site/src/components/block-editor/editor-canvas.js index fad43f0410640..34c23cc699bc2 100644 --- a/packages/edit-site/src/components/block-editor/editor-canvas.js +++ b/packages/edit-site/src/components/block-editor/editor-canvas.js @@ -87,7 +87,9 @@ function EditorCanvas( { enableResizing, settings, children, ...props } ) { // which isn't a requirement in auto resize mode. enableResizing ? 'min-height:0!important;' : '' }}body{position:relative; ${ - canvasMode === 'view' ? 'cursor: pointer;' : '' + canvasMode === 'view' + ? 'cursor: pointer; height: 100vh' + : '' }}}` } { children }