I'm currently working on a project that involves using material UI alongside React/Redux. There has been a recent change in the Figma file where the SwipeableDrawer component is now positioned on the right side of the screen instead of the left. I've been struggling to figure out how to adjust its position.
Below is the JSX for the component:
<SwipeableDrawer className="swipeDrawer" anchor="bottom" variant="temporary" open={isFilterShown} onOpen={toggleFilterModal} onClose={toggleFilterModal} sx={{ '& .MuiDrawer-paper': { height: '50%' } }} > <Box className="filterBox" sx={{ height: '14%', backgroundColor: '#525F75', display: 'flex', justifyContent: 'center', alignItems: 'center', paddingTop: '5%' }} > <Typography variant="h5" color="white"> Water Filter </Typography> </Box> <!-- More content here --> </ScalingComponent></pre> <p>Here's the CSS class related to the issue:</p> <p><code> .filterBox { width: 100%; padding-right: 0; }
I've experimented with various solutions like using display block and float-left, but none seem to work effectively. I've spent over a week trying different methods without success and feel quite stuck.
Edit: A snippet of the resulting HTML was requested.