I am facing a challenge with making the Timeline in Material UI responsive for the first time. Currently, I have it set to align 'alternate', but I want it to switch to align 'left' when viewed on mobile or certain screen widths. I have tried various approaches without success so far. The project is a Next.Js app built with Typescript. Here's the code snippet:
<Timeline align={matches ? 'alternate' : 'left'}>
<TimelineItem className={classes.primaryTail}>
<TimelineOppositeContent>
<h5>2015</h5>
</TimelineOppositeContent>
<TimelineSeparator>
<TimelineDot>
<FaUniversity size='1.5em' />
</TimelineDot>
<TimelineConnector />
</TimelineSeparator>
<TimelineContent>
<Paper elevation={24} className={classes.paper}>
<h5>Some title</h5>
<p>Some paragraph</p>
</Paper>
</TimelineContent>
</TimelineItem>
</Timeline>
Any ideas would be greatly appreciated!