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 (#51973)
  • Loading branch information
getdave authored and tellthemachines committed Jul 3, 2023
1 parent 6271aae commit ad1865a
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 ad1865a

Please sign in to comment.