Fix aspect ratio in Album show view

This commit is contained in:
Deluan 2020-11-22 15:01:08 -05:00 committed by Deluan Quintão
parent 69b2fe92f5
commit a89afb5fcf
2 changed files with 3 additions and 2 deletions

View File

@ -63,10 +63,11 @@ const useStyles = makeStyles((theme) => ({
}, },
}, },
cover: { cover: {
objectFit: 'contain',
cursor: 'pointer', cursor: 'pointer',
display: 'block', display: 'block',
width: '100%', width: '100%',
height: 'auto', height: '100%',
}, },
starButton: { starButton: {
top: theme.spacing(-0.2), top: theme.spacing(-0.2),

View File

@ -77,7 +77,7 @@ const useCoverStyles = makeStyles({
cover: { cover: {
display: 'inline-block', display: 'inline-block',
width: '100%', width: '100%',
'object-fit': 'contain', objectFit: 'contain',
height: (props) => props.height, height: (props) => props.height,
}, },
}) })