Skip to content

Commit

Permalink
Site Editor: don't render empty body tag (#62769)
Browse files Browse the repository at this point in the history
Co-authored-by: ramonjd <[email protected]>
Co-authored-by: ellatrix <[email protected]>
  • Loading branch information
3 people authored Jun 24, 2024
1 parent 950f5c8 commit 73a9d35
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/edit-site/src/components/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,12 @@ export default function EditSiteEditor( { isLoading } ) {
{
// Forming a "block formatting context" to prevent margin collapsing.
// @see https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context

css: `body{${
css:
canvasMode === 'view'
? `min-height: 100vh; ${
? `body{min-height: 100vh; ${
currentPostIsTrashed ? '' : 'cursor: pointer;'
}`
: ''
}}}`,
}}`
: undefined,
},
],
[ settings.styles, canvasMode, currentPostIsTrashed ]
Expand Down

0 comments on commit 73a9d35

Please sign in to comment.