Skip to content

Commit

Permalink
Fix sizing of page container (mui#2974)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Dec 6, 2023
1 parent 2ca517e commit 9a4b3d3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function MyPage() {
});

return (
<Box sx={{ width: '100%', height: 400, m: 2 }}>
<Box sx={{ width: '100%', height: 400, p: 2 }}>
<DataGrid
rows={rows}
columns={COLUMNS}
Expand Down
2 changes: 1 addition & 1 deletion packages/toolpad-app/src/runtime/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export function AppLayout({
search={retainedSearch}
/>
) : null}
{children}
<Box sx={{ minWidth: 0, flex: 1, position: 'relative' }}>{children}</Box>
</Box>
);
}

0 comments on commit 9a4b3d3

Please sign in to comment.