Skip to content

Commit 48f171e

Browse files
committed
Fix style for embedded ArrayInputs
1 parent fb14a33 commit 48f171e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/ra-ui-materialui/src/input/ArrayInput/ArrayInput.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const Root = styled(FormControl, {
216216
overridesResolver: (props, styles) => styles.root,
217217
})(({ theme }) => ({
218218
[`& .${ArrayInputClasses.label}`]: {
219-
top: theme.spacing(-0.5),
219+
top: theme.spacing(-2),
220220
left: theme.spacing(-1.5),
221221
},
222222
}));

packages/ra-ui-materialui/src/input/ArrayInput/SimpleFormIterator.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ const Root = styled('ul', {
225225
overridesResolver: (props, styles) => styles.root,
226226
})(({ theme }) => ({
227227
padding: 0,
228+
marginTop: 0,
228229
marginBottom: 0,
229230
'& > li:last-child': {
230231
borderBottom: 'none',

0 commit comments

Comments
 (0)