fix(ui): spacing in row fields by using gap instead of inner margins (#7387)
This commit is contained in:
@@ -157,7 +157,9 @@ export const generateFormCollection = (formConfig: FormBuilderPluginConfig): Col
|
||||
name: 'cc',
|
||||
type: 'text',
|
||||
admin: {
|
||||
width: '50%',
|
||||
style: {
|
||||
maxWidth: '50%',
|
||||
},
|
||||
},
|
||||
label: 'CC',
|
||||
},
|
||||
@@ -165,7 +167,9 @@ export const generateFormCollection = (formConfig: FormBuilderPluginConfig): Col
|
||||
name: 'bcc',
|
||||
type: 'text',
|
||||
admin: {
|
||||
width: '50%',
|
||||
style: {
|
||||
maxWidth: '50%',
|
||||
},
|
||||
},
|
||||
label: 'BCC',
|
||||
},
|
||||
|
||||
@@ -4,14 +4,10 @@
|
||||
.row__fields {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
width: calc(100% + var(--base));
|
||||
margin-left: calc(var(--base) * -0.5);
|
||||
margin-right: calc(var(--base) * -0.5);
|
||||
gap: calc(var(--base) * 0.5);
|
||||
|
||||
> * {
|
||||
flex-grow: 1;
|
||||
padding-left: calc(var(--base) * 0.5);
|
||||
padding-right: calc(var(--base) * 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user