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 committed Jun 28, 2023
1 parent 4ef676e commit a09f124
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

1 comment on commit a09f124

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in a09f124.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5399699174
📝 Reported issues:

Please sign in to comment.