I came across a helpful article on Stack Overflow about Flex-box and how to align the last row to the grid. I'm interested in implementing it in my project:
.grid::after {
content: "";
flex: auto;
}
However, I'm not sure how to incorporate this into my MaterialUI styles using JavaScript:
const useStyles = makeStyles((theme) => ({
root: {
flexGrow: 1,
},
paper: {
height: 140,
width: 140,
},
control: {
padding: theme.spacing(2),
},
fullName: {
marginRight: '3px'
}
}));
Specifically, I'm unsure how to add an after pseudo-element to a MaterialUI Grid component:
<Grid className={classes.root} container justify="space-around" spacing={2}>
<CompanyList companies={companies} data-test-id="companyList" />
</Grid>