From 6d8f1cfba9d1eed0536a0a4b14d035e638051251 Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:21:18 +1100 Subject: [PATCH] Remove align classes altogether --- packages/editor/src/components/visual-editor/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/editor/src/components/visual-editor/index.js b/packages/editor/src/components/visual-editor/index.js index 7ee39c27b4416b..34e9e5117f7eb1 100644 --- a/packages/editor/src/components/visual-editor/index.js +++ b/packages/editor/src/components/visual-editor/index.js @@ -260,7 +260,7 @@ function VisualEditor( { ); }, [ editedPostTemplate?.content, editedPostTemplate?.blocks ] ); - const { layout = {}, align = '' } = newestPostContentAttributes || {}; + const { layout = {} } = newestPostContentAttributes || {}; const postContentLayoutClasses = useLayoutClasses( newestPostContentAttributes, @@ -271,8 +271,7 @@ function VisualEditor( { { 'is-layout-flow': ! themeSupportsLayout, }, - themeSupportsLayout && postContentLayoutClasses, - align && ! [ 'wide', 'full' ].includes( align ) && `align${ align }` + themeSupportsLayout && postContentLayoutClasses ); const postContentLayoutStyles = useLayoutStyles(