Correcting display of array fields
This commit is contained in:
@@ -73,14 +73,14 @@ export default function ArrayFieldTemplate<
|
||||
uiSchema={uiSchema}
|
||||
registry={registry}
|
||||
/>
|
||||
<Grid2 container justifyContent='flex-end'>
|
||||
<Grid2 container justifyContent='flex-start'>
|
||||
{items &&
|
||||
items.map(({ key, ...itemProps }: ArrayFieldTemplateItemType<T, S, F>, index) => (
|
||||
<Grid2 key={key} size={gridSize} >
|
||||
<Stack direction="row" sx={{alignItems: "center"}}>
|
||||
{numbered &&<Typography variant="h4">{index + 1}</Typography>}
|
||||
<ArrayFieldItemTemplate key={key} {...itemProps} />
|
||||
</Stack>
|
||||
<Grid2 container sx={{alignItems: "center"}} >
|
||||
{numbered &&<Grid2 size={1} ><Typography variant="h4">{index + 1}</Typography></Grid2>}
|
||||
<Grid2 size={numbered ? 11 : 12} ><ArrayFieldItemTemplate key={key} {...itemProps} /></Grid2>
|
||||
</Grid2>
|
||||
</Grid2>
|
||||
))}
|
||||
</Grid2>
|
||||
|
||||
Reference in New Issue
Block a user