Skip to content

Commit

Permalink
Remove align classes altogether
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Oct 24, 2024
1 parent dcfc7f2 commit 6d8f1cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/editor/src/components/visual-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function VisualEditor( {
);
}, [ editedPostTemplate?.content, editedPostTemplate?.blocks ] );

const { layout = {}, align = '' } = newestPostContentAttributes || {};
const { layout = {} } = newestPostContentAttributes || {};

const postContentLayoutClasses = useLayoutClasses(
newestPostContentAttributes,
Expand All @@ -271,8 +271,7 @@ function VisualEditor( {
{
'is-layout-flow': ! themeSupportsLayout,
},
themeSupportsLayout && postContentLayoutClasses,
align && ! [ 'wide', 'full' ].includes( align ) && `align${ align }`
themeSupportsLayout && postContentLayoutClasses
);

const postContentLayoutStyles = useLayoutStyles(
Expand Down

0 comments on commit 6d8f1cf

Please sign in to comment.