I'm encountering an issue with Material UI grid. Whenever I increase the spacing above 0, the Grid does not fit the screen properly and a bottom slider is visible, allowing me to move the page horizontally slightly.
Here is the simplified code snippet I am using:
<Grid container
justify="space-around"
spacing={4}>
<Grid item xs={6} >
<Paper>a</Paper>
</Grid>
<Grid item xs={6} >
<Paper>b</Paper>
</Grid>
</Grid>
When the spacing is set to 0, the grid fits perfectly without any issues. How can I maintain spaces between grid items without affecting the width of the app? What could be causing this problem?
For reference, here is the link to codesandbox where the same issue has been replicated: https://codesandbox.io/s/magical-sammet-y0297?fontsize=14&hidenavigation=1&theme=dark
Thank you