Skip to content

Commit

Permalink
update: improve RJS form
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Jul 29, 2024
1 parent 24ab57e commit d61f88b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/other/rjsf/templates/ObjectFieldTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function ObjectFieldTemplate(props) {
return (React.createElement(Box, { className: "ObjectFieldTemplate" },
title && !isNumeric(title) && (React.createElement(TitleFieldTemplate, { id: titleId(idSchema), title: title, required: required, schema: schema, uiSchema: uiSchema, registry: registry })),
description && (React.createElement(DescriptionFieldTemplate, { id: descriptionId(idSchema), description: description, schema: schema, uiSchema: uiSchema, registry: registry })),
React.createElement(Grid, { container: true, spacing: 2, style: { marginTop: "10px" } },
React.createElement(Grid, { container: true, spacing: 2 },
properties.map((element, index) =>
// Remove the <Grid> if the inner element is hidden as the <Grid>
// itself would otherwise still take up space.
Expand Down
2 changes: 1 addition & 1 deletion src/other/rjsf/templates/ObjectFieldTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function ObjectFieldTemplate<
registry={registry}
/>
)}
<Grid container spacing={2} style={{ marginTop: "10px" }}>
<Grid container spacing={2}>
{properties.map((element, index) =>
// Remove the <Grid> if the inner element is hidden as the <Grid>
// itself would otherwise still take up space.
Expand Down

0 comments on commit d61f88b

Please sign in to comment.