From ee8943f338ecdfeec99aa329de95180ccd2fb528 Mon Sep 17 00:00:00 2001 From: Deluan Date: Thu, 7 Oct 2021 19:49:27 -0400 Subject: [PATCH] Fix semantic classes for currently playing song Fix #1364 --- ui/src/audioplayer/AudioTitle.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/ui/src/audioplayer/AudioTitle.js b/ui/src/audioplayer/AudioTitle.js index 39c2389db..bf509c668 100644 --- a/ui/src/audioplayer/AudioTitle.js +++ b/ui/src/audioplayer/AudioTitle.js @@ -27,21 +27,22 @@ const AudioTitle = React.memo(({ audioInfo, isMobile }) => { )} - {!isMobile && ( - - {`${song.artist} - ${song.album}` + - (song.year ? ` - ${song.year}` : '')} - - )} - {isMobile && ( + {isMobile ? ( <> - - {`${song.artist}`} + + {song.artist} - {song.year ? `${song.album} - ${song.year}` : `${song.album}`} + {song.album} + {song.year ? ` - ${song.year}` : ''} + ) : ( + + {song.artist} -{' '} + {song.album} + {song.year ? ` - ${song.year}` : ''} + )} )