From 791292683a6ff41e93edb609ff05775ba16f8972 Mon Sep 17 00:00:00 2001 From: Laurel Fulford Date: Tue, 5 May 2020 14:59:28 -0700 Subject: [PATCH] fix: make sure full width blocks preview centered in editor --- newspack-theme/sass/style-editor-overrides.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/newspack-theme/sass/style-editor-overrides.scss b/newspack-theme/sass/style-editor-overrides.scss index 225382c7c..bbb428b9f 100644 --- a/newspack-theme/sass/style-editor-overrides.scss +++ b/newspack-theme/sass/style-editor-overrides.scss @@ -12,10 +12,11 @@ /** === Default Template === */ @include media( mobile ) { - body.newspack-default-template .wp-block[data-align='full'] { + body.newspack-default-template + .block-editor-block-list__layout.is-root-container + > .wp-block[data-align='full'] { margin-left: auto; margin-right: auto; - max-width: 780px; } }