fixed song list and album list sort order

sort first by name, then by year
tweak cover art scaling/size
This commit is contained in:
austinried
2021-08-04 20:59:19 +09:00
parent efc7e5c799
commit e15a2ebcfc
4 changed files with 25 additions and 15 deletions

View File

@@ -33,13 +33,9 @@ const Songs = React.memo<{
if (type === 'album') {
typeName = 'Album'
_songs.sort((a, b) => {
if (b.track && a.track) {
return a.track - b.track
} else {
return a.title.localeCompare(b.title)
}
})
_songs
.sort((a, b) => a.title.localeCompare(b.title)) //
.sort((a, b) => (a.track || 0) - (b.track || 0))
} else {
typeName = 'Playlist'
}
@@ -150,8 +146,8 @@ const styles = StyleSheet.create({
textAlign: 'center',
},
cover: {
height: 220,
width: 220,
height: 240,
width: 240,
},
songs: {
marginTop: 26,