Skip to content

Commit

Permalink
Turn the wrap to multiple lines option off by default on the row block (
Browse files Browse the repository at this point in the history
#40171)

* Turn the wrap to multiple lines option off by default on the row block

* Also avoid wrapping for row multi-select option
  • Loading branch information
talldan authored Apr 8, 2022
1 parent 0e28799 commit e22a548
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { store as blockEditorStore } from '../../store';

const layouts = {
group: undefined,
row: { type: 'flex' },
row: { type: 'flex', flexWrap: 'nowrap' },
stack: { type: 'flex', orientation: 'vertical' },
};

Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/group/variations.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const variations = [
name: 'group-row',
title: __( 'Row' ),
description: __( 'Blocks shown in a row.' ),
attributes: { layout: { type: 'flex' } },
attributes: { layout: { type: 'flex', flexWrap: 'nowrap' } },
scope: [ 'inserter', 'transform' ],
isActive: ( blockAttributes ) =>
blockAttributes.layout?.type === 'flex' &&
Expand Down

0 comments on commit e22a548

Please sign in to comment.