Skip to content

Commit 84d2953

Browse files
committed
Fixed layout grid and added screenshots
1 parent 7228994 commit 84d2953

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed
203 KB
Loading
214 KB
Loading

packages/mantine/screenshot.png

-296 KB
Binary file not shown.

packages/mantine/src/templates/GridTemplate.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { Container, Grid } from '@mantine/core';
12
import { GridTemplateProps } from '@rjsf/utils';
2-
import { Grid, Container } from '@mantine/core';
33

44
/** Renders a `GridTemplate` for mantine, which is expecting the column sizing information coming in via the
55
* extra props provided by the caller, which are spread directly on the `Grid`/`Grid.Col`.
@@ -8,14 +8,15 @@ import { Grid, Container } from '@mantine/core';
88
*/
99
export default function GridTemplate(props: GridTemplateProps) {
1010
const { children, column, fluid = true, ...rest } = props;
11+
1112
if (column) {
1213
return <Grid.Col {...rest}>{children}</Grid.Col>;
1314
}
1415

1516
// Grid with fluid container
1617
if (fluid) {
1718
return (
18-
<Container fluid={fluid} p='4' mx={0}>
19+
<Container p='4' mx={0} w='100%'>
1920
<Grid {...rest}>{children}</Grid>
2021
</Container>
2122
);

packages/playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@
118118
"publishConfig": {
119119
"access": "public"
120120
}
121-
}
121+
}

packages/playground/src/samples/layoutGrid.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,6 @@ const layoutGrid: Sample = {
990990
{
991991
'ui:col': {
992992
span: 12,
993-
style: { margin: '38px 0 6px' },
994993
children: ['employment'],
995994
},
996995
},

0 commit comments

Comments
 (0)