From ea1d53e67dbb8543eb8673c84a9230833eef16df Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Wed, 24 Aug 2022 17:16:44 +1000 Subject: [PATCH] Layout: Re-instate alignwide and alignfull in flow layout get alignments (#43502) --- packages/block-editor/src/layouts/flow.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/block-editor/src/layouts/flow.js b/packages/block-editor/src/layouts/flow.js index a41ced61cb6ab..fb0eb5ecde093 100644 --- a/packages/block-editor/src/layouts/flow.js +++ b/packages/block-editor/src/layouts/flow.js @@ -65,6 +65,7 @@ export default { info: alignmentInfo[ alignment ], } ) ); } + const { contentSize, wideSize } = layout; const alignments = [ { name: 'left' }, @@ -72,6 +73,14 @@ export default { { 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;