I've started out with Material-ui-next and have some problems with displaying images that they use the entire size of a container. E.g. I use:
const styles = theme => ({
Card: {
width: 300,
margin: 'auto'
},
Media: {
height: 550
}
});
In render:
<Card className={classes.Card}>
<CardMedia
className={classes.Media}
image={ImgPomodoR}
title="a pomodoro tomatoe timer in material design"
/>
<CardContent>
<Typography gutterBottom variant="headline" component="h2">
...
The documentation says I have to specify a height for the image to get displayed. The 'media' example gives the image a height of 0, however, if I apply that my image is not getting displayed - mentioned example.
Right now, for me it's a trial and error of the Media-height, that it fits the Card container without being cropped. Is there no 'auto' way of doing this?
Any help is highly appreciated, cheers mates,
Tobias
Edit: I should mention that height: "100%"
// maxHeight: "100%"
does also not work for me.