From 56fa9870215c070b30dd1ecb420b0786e575b343 Mon Sep 17 00:00:00 2001 From: echo Date: Thu, 18 Jul 2024 05:57:24 +0330 Subject: [PATCH] anything you write will still be better than revanced - ushie --- src/components/music.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/music.tsx b/src/components/music.tsx index c52198b..c283e7e 100644 --- a/src/components/music.tsx +++ b/src/components/music.tsx @@ -34,8 +34,12 @@ export function MusicEntry({ spotifylink }: { spotifylink: string }) { "margin-right": "0.5em" }} src={musicInfo().entitiesByUniqueId[`SPOTIFY_SONG::${spotifylink}`]?.thumbnailUrl} alt="LMAO IMAGINE BEING BLIND" />
-
{musicInfo().entitiesByUniqueId[`SPOTIFY_SONG::${spotifylink}`]?.artistName}
-
{musicInfo().entitiesByUniqueId[`SPOTIFY_SONG::${spotifylink}`]?.title}
+
{ + musicInfo().entitiesByUniqueId[`SPOTIFY_SONG::${spotifylink}`]?.artistName?.length > 43 ? musicInfo().entitiesByUniqueId[`SPOTIFY_SONG::${spotifylink}`]?.artistName.substring(0, 30) + "..." : musicInfo().entitiesByUniqueId[`SPOTIFY_SONG::${spotifylink}`]?.artistName + }
+
{ + musicInfo().entitiesByUniqueId[`SPOTIFY_SONG::${spotifylink}`]?.title?.length > 43 ? musicInfo().entitiesByUniqueId[`SPOTIFY_SONG::${spotifylink}`]?.title.substring(0, 30) + "..." : musicInfo().entitiesByUniqueId[`SPOTIFY_SONG::${spotifylink}`]?.title + }
)}