Merge pull request #1796 from payloadcms/fix/groups-within-row

fix: updates margin for group field within a row
This commit is contained in:
James Mikrut
2023-01-09 10:03:50 -05:00
committed by GitHub
5 changed files with 88 additions and 12 deletions

View File

@@ -67,6 +67,49 @@ const GroupFields: CollectionConfig = {
},
],
},
{
type: 'row',
fields: [
{
name: 'groupInRow',
type: 'group',
fields: [
{
name: 'field',
type: 'text',
},
{
name: 'secondField',
type: 'text',
},
{
name: 'thirdField',
type: 'text',
},
],
},
{
name: 'secondGroupInRow',
type: 'group',
fields: [
{
name: 'field',
type: 'text',
},
{
name: 'nestedGroup',
type: 'group',
fields: [
{
name: 'nestedField',
type: 'text',
},
],
},
],
},
],
},
],
};