const customStyles = createStyles({
media: {
height: 183
}
});
<CardMedia
className={classes.media}
image="pic.jpg"
/>
Instead of setting the size in pixels, is there a method to adjust it based on an aspect ratio? For instance, on a 300px width card, it would be 200px high and on a 600px wide card, it would be 400px high. This approach would be ideal for me.
Alternatively, how can I utilize vh for the height?