From 026162e2b52b7099b1bb359feee6c8dd726ad21c Mon Sep 17 00:00:00 2001 From: angel Date: Tue, 1 Jul 2025 17:14:05 +0000 Subject: [PATCH] feat: simplify track display in Album and Queue pages, removing unnecessary elements and improving UI clarity --- app/album/[id]/page.tsx | 10 +--------- app/queue/page.tsx | 32 ++++++-------------------------- 2 files changed, 7 insertions(+), 35 deletions(-) diff --git a/app/album/[id]/page.tsx b/app/album/[id]/page.tsx index e066a77..239b60e 100644 --- a/app/album/[id]/page.tsx +++ b/app/album/[id]/page.tsx @@ -160,23 +160,15 @@ export default function AlbumPage() { {tracklist.map((song, index) => (
handlePlayClick(song)} > {/* Track Number / Play Indicator */}
- {isCurrentlyPlaying(song) ? ( -
-
-
- ) : ( <> {song.track || index + 1} - )}
{/* Song Info */} diff --git a/app/queue/page.tsx b/app/queue/page.tsx index f6c5ef4..683b02e 100644 --- a/app/queue/page.tsx +++ b/app/queue/page.tsx @@ -46,7 +46,7 @@ const QueuePage: React.FC = () => { {currentTrack && (

Now Playing

-
+
{/* Album Art */}
@@ -65,7 +65,6 @@ const QueuePage: React.FC = () => {

{currentTrack.name}

-
@@ -74,12 +73,6 @@ const QueuePage: React.FC = () => { {currentTrack.artist}
-
- - - {currentTrack.album} - -
@@ -122,14 +115,8 @@ const QueuePage: React.FC = () => { className="group flex items-center p-3 rounded-lg hover:bg-accent/50 cursor-pointer transition-colors" onClick={() => skipToTrackInQueue(index)} > - {/* Track Number / Play Indicator */} -
- {index + 1} - -
- - {/* Album Art */} -
+ {/* Album Art with Play Indicator */} +
{track.album} { height={48} className="w-full h-full object-cover rounded-md" /> +
+ +
{/* Song Info */} @@ -155,16 +145,6 @@ const QueuePage: React.FC = () => { {track.artist}
-
- - e.stopPropagation()} - > - {track.album} - -