Skip to content

Commit

Permalink
Layout: Re-instate alignwide and alignfull in flow layout get alignments
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Aug 24, 2022
1 parent 4edaf18 commit 8399921
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/block-editor/src/layouts/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,22 @@ export default {
info: alignmentInfo[ alignment ],
} ) );
}
const { contentSize, wideSize } = layout;

const alignments = [
{ name: 'left' },
{ name: 'center' },
{ name: 'right' },
];

if ( contentSize ) {
alignments.unshift( { name: 'full' } );
}

if ( wideSize ) {
alignments.unshift( { name: 'wide', info: alignmentInfo.wide } );
}

alignments.unshift( { name: 'none', info: alignmentInfo.none } );

return alignments;
Expand Down

0 comments on commit 8399921

Please sign in to comment.