Skip to content

Commit

Permalink
Force full height Editor for Navigation focus mode (WordPress#51798)
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave authored and sethrubenstein committed Jul 13, 2023
1 parent 63ebb0c commit 6b923a3
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ export default function SiteEditorCanvas() {
? false
: undefined;

const forceFullHeight = isNavigationFocusMode;

return (
<>
<EditorCanvasContainer.Slot>
Expand Down Expand Up @@ -123,7 +125,11 @@ export default function SiteEditorCanvas() {
<BackButton />
<ResizableEditor
enableResizing={ enableResizing }
height={ sizes.height ?? '100%' }
height={
sizes.height && ! forceFullHeight
? sizes.height
: '100%'
}
>
<EditorCanvas
enableResizing={ enableResizing }
Expand Down

0 comments on commit 6b923a3

Please sign in to comment.