Skip to content

Commit

Permalink
Edit Site: Fix canvasMode var (WordPress#66316)
Browse files Browse the repository at this point in the history
Co-authored-by: tyxla <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: sirreal <[email protected]>
  • Loading branch information
5 people authored Oct 22, 2024
1 parent e43a1c5 commit d0771cd
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions packages/edit-site/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,16 @@ export default function Layout( { route } ) {
</div>
) }

{ ! isMobileViewport &&
areas.edit &&
canvasMode !== 'edit' && (
<div
className="edit-site-layout__area"
style={ {
maxWidth: widths?.edit,
} }
>
{ areas.edit }
</div>
) }
{ ! isMobileViewport && areas.edit && canvas !== 'edit' && (
<div
className="edit-site-layout__area"
style={ {
maxWidth: widths?.edit,
} }
>
{ areas.edit }
</div>
) }

{ ! isMobileViewport && areas.preview && (
<div className="edit-site-layout__canvas-container">
Expand Down

0 comments on commit d0771cd

Please sign in to comment.