Fix aspect ratio in Album show view
This commit is contained in:
parent
69b2fe92f5
commit
a89afb5fcf
2 changed files with 3 additions and 2 deletions
|
|
@ -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),
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue