Skip to content

Commit bc315cc

Browse files
- Made it responsive
1 parent e5b301e commit bc315cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ should change the heading of the (upcoming) version to include a major version b
4646
## @rjsf/mui
4747

4848
- Updated `FieldTemplate` to skip label and description rendering for checkbox widgets, fixing ([#4742](https://github.com/rjsf-team/react-jsonschema-form/issues/4742))
49-
- Updated `ArrayFieldItemTemplate` to remove `size='auto'` from the `Grid`, fixing [#4838](https://github.com/rjsf-team/react-jsonschema-form/issues/4838)
49+
- Updated `ArrayFieldItemTemplate` to switch `size` from 'auto' to responsive values on the `Grid`, fixing [#4838](https://github.com/rjsf-team/react-jsonschema-form/issues/4838)
5050

5151
## @rjsf/primereact
5252

packages/mui/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function ArrayFieldItemTemplate<
3636
};
3737
return (
3838
<Grid container={true} alignItems='center'>
39-
<Grid style={{ overflow: 'auto' }}>
39+
<Grid size={{ xs: 8, sm: 9, md: 10, lg: 11 }} style={{ overflow: 'auto' }}>
4040
<Box mb={2}>
4141
<Paper elevation={2}>
4242
<Box p={2}>{children}</Box>

0 commit comments

Comments
 (0)