mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-16 20:12:22 +03:00
feat: limit size of cover art
This commit is contained in:
parent
8f0c07d29f
commit
52cd17963f
@ -28,7 +28,11 @@ const AlbumDetails = ({ id, classes }) => {
|
||||
return (
|
||||
<Card className={classes.container}>
|
||||
<CardMedia
|
||||
image={subsonicUrl('getCoverArt', data.coverArtId || 'not_found')}
|
||||
image={subsonicUrl(
|
||||
'getCoverArt',
|
||||
data.coverArtId || 'not_found',
|
||||
'size=500'
|
||||
)}
|
||||
className={classes.albumCover}
|
||||
/>
|
||||
<CardContent className={classes.albumDetails}>
|
||||
|
@ -10,7 +10,7 @@ const mapToAudioLists = (item) => ({
|
||||
id: item.id,
|
||||
name: item.title,
|
||||
singer: item.artist,
|
||||
cover: subsonicUrl('getCoverArt', item.id),
|
||||
cover: subsonicUrl('getCoverArt', item.id, 'size=300'),
|
||||
musicSrc: subsonicUrl('stream', item.id),
|
||||
scrobble: (submit) => subsonicUrl('scrobble', item.id, `submission=${submit}`)
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user