Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

Commit 89c1330

Browse files
Merge pull request #14 from aerogear/nested-margins
2 parents fde2efb + 7e9dec1 commit 89c1330

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/NestField.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const Nest = ({
3030
return (
3131
<Card
3232
{...filterDOMProps(props)}
33+
style={{ marginBottom: '1.5rem' }}
3334
>
3435
<CardBody>
3536
{label && <label>{label}</label>}
@@ -38,11 +39,6 @@ const Nest = ({
3839
: fields?.map(key => (
3940
<>
4041
<AutoField key={key} disabled={disabled} name={joinName(name, key)} {...itemProps} />
41-
{/*
42-
Not ideal to use a <br> tag, but a layout workaround that
43-
won't impact further nested fields
44-
*/}
45-
<br />
4642
</>
4743
))}
4844
</CardBody>

0 commit comments

Comments
 (0)