Add missing song information to players and apply EnableCoverAnimation to mobile player. (#1268)
* Disable mobile player cover animation when EnableCoverAnimation is set to false. Also increase cover art size and remove rounded borders. * Display song album and year in mobile player view * Remove default singer element from mobile player and reduce vertical white space * Only add song year if it exists * Add song year to desktop player when present * Increase non-animated cover size to 85% and set a limit on the width of 600px. * Explain what what the styles impact * Remove unused style for songArtist * Apply prettier * Adjust player styles to handle nonsquare album art better. Should probably push this upstream too * Also fix desktop player's handling of non square cover art.
This commit is contained in:
@@ -28,11 +28,20 @@ const AudioTitle = React.memo(({ audioInfo, isMobile }) => {
|
||||
)}
|
||||
</span>
|
||||
{!isMobile && (
|
||||
<div className={classes.artistAlbum}>
|
||||
<span className={clsx(classes.songInfo, 'songInfo')}>
|
||||
{`${song.artist} - ${song.album}`}
|
||||
<span className={clsx(classes.songInfo)}>
|
||||
{`${song.artist} - ${song.album}` +
|
||||
(song.year ? ` - ${song.year}` : '')}
|
||||
</span>
|
||||
)}
|
||||
{isMobile && (
|
||||
<>
|
||||
<span className={clsx(classes.songInfo, classes.songArtist)}>
|
||||
{`${song.artist}`}
|
||||
</span>
|
||||
</div>
|
||||
<span className={clsx(classes.songInfo, classes.songAlbum)}>
|
||||
{song.year ? `${song.album} - ${song.year}` : `${song.album}`}
|
||||
</span>
|
||||
</>
|
||||
)}
|
||||
</Link>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user