From bfcdba409602ebfbe73ff48aec033740ca9cab32 Mon Sep 17 00:00:00 2001 From: skidoodle Date: Fri, 29 Dec 2023 16:29:02 +0100 Subject: [PATCH] spotify: +artists --- src/components/SpotifyCard.tsx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/components/SpotifyCard.tsx b/src/components/SpotifyCard.tsx index e4bbd77..a0e1ff0 100644 --- a/src/components/SpotifyCard.tsx +++ b/src/components/SpotifyCard.tsx @@ -31,7 +31,7 @@ export const NowPlayingCard = () => { } }, []) - const calcProgress = () => { + const Progress = () => { if (spotify.song && spotify.song.length > 0) { const progressPercentage = (spotify.song.progress / spotify.song.length) * 100 @@ -55,17 +55,22 @@ export const NowPlayingCard = () => { />
- Listening to{' '} - +

{truncate(`${spotify.song.title}`, 20)} - +

+

+ {truncate( + spotify.song.artist.map((artist) => artist).join(', '), + 30 + )} +

-
+