From ae77d497cddedfe34aa8919699cedbfff89b8910 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Tue, 26 Nov 2019 12:03:23 -0500 Subject: [PATCH] Edit Post: Restore flex container styling of editor content region --- packages/edit-post/src/components/editor-regions/style.scss | 5 +++++ packages/edit-post/src/components/visual-editor/style.scss | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/edit-post/src/components/editor-regions/style.scss b/packages/edit-post/src/components/editor-regions/style.scss index 5bad0c7918bc6..c0c18a1f43309 100644 --- a/packages/edit-post/src/components/editor-regions/style.scss +++ b/packages/edit-post/src/components/editor-regions/style.scss @@ -38,6 +38,11 @@ .edit-post-editor-regions__content { flex-grow: 1; + // Treat as flex container to allow children to grow to occupy full + // available height of the content area. + display: flex; + flex-direction: column; + // On Mobile the header is fixed to keep HTML as scrollable. @include break-medium() { overflow: auto; diff --git a/packages/edit-post/src/components/visual-editor/style.scss b/packages/edit-post/src/components/visual-editor/style.scss index 095deb2ee8ceb..20a56f91d988e 100644 --- a/packages/edit-post/src/components/visual-editor/style.scss +++ b/packages/edit-post/src/components/visual-editor/style.scss @@ -16,7 +16,6 @@ } } -.edit-post-visual-editor, .edit-post-visual-editor > .block-editor__typewriter, .edit-post-visual-editor > .block-editor__typewriter > .block-editor-writing-flow, .edit-post-visual-editor > .block-editor__typewriter > .block-editor-writing-flow > .block-editor-writing-flow__click-redirect {