From 467eb043c2434cf3f2af3a191a537c0332952672 Mon Sep 17 00:00:00 2001 From: Kushagra Goyal Date: Wed, 4 Jun 2025 20:41:25 +0530 Subject: [PATCH 1/2] fix: resolve text alignment for blocks - fix the alignment issue for blocks in query loop post template - fix alignment of title for the whole theme to match the editor and frontend view --- .../twentytwenty/assets/css/editor-style-block.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index 862a51cc2b8e1..3b6553c58b9ae 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -280,8 +280,10 @@ /* POST TITLE */ .editor-styles-wrapper .wp-block-post-title { - max-width: 1000px; margin: 0 auto; +} + +.editor-styles-wrapper .editor-visual-editor__post-title-wrapper .wp-block-post-title { text-align: center; } @@ -1167,6 +1169,16 @@ hr.wp-block-separator.is-style-dots::before { .editor-styles-wrapper ul.wp-block-post-template { padding-left: 0; + max-width: 100%; +} + +.editor-styles-wrapper ul.wp-block-post-template li { + max-width: 100%; + width: 100%; +} + +.editor-styles-wrapper ul.wp-block-post-template li > * { + max-width: inherit; } From 627b9ffb19e3512a4079a1f29afc770ea720213c Mon Sep 17 00:00:00 2001 From: Kushagra Goyal Date: Thu, 5 Jun 2025 16:06:05 +0530 Subject: [PATCH 2/2] fix: add rtl suport for style --- .../assets/css/editor-style-block-rtl.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css index 141b9d9f86a4c..8c49353a760ef 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css @@ -280,8 +280,10 @@ /* POST TITLE */ .editor-styles-wrapper .wp-block-post-title { - max-width: 1000px; margin: 0 auto; +} + +.editor-styles-wrapper .editor-visual-editor__post-title-wrapper .wp-block-post-title { text-align: center; } @@ -1163,6 +1165,16 @@ hr.wp-block-separator.is-style-dots::before { .editor-styles-wrapper ul.wp-block-post-template { padding-right: 0; + max-width: 100%; +} + +.editor-styles-wrapper ul.wp-block-post-template li { + max-width: 100%; + width: 100%; +} + +.editor-styles-wrapper ul.wp-block-post-template li > * { + max-width: inherit; }