Skip to content

Commit

Permalink
Make the entire preview clickable in order to enter "edit" mode in fo…
Browse files Browse the repository at this point in the history
…cus mode (WordPress#51973)
  • Loading branch information
getdave authored and sethrubenstein committed Jul 13, 2023
1 parent 44191ec commit 7d658fa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
: ''
}}}`
}</style>
{ children }
Expand Down

0 comments on commit 7d658fa

Please sign in to comment.