refactor: remove commented-out playlist name display and adjust track info rendering

This commit is contained in:
JSC
2025-08-09 21:46:56 +02:00
parent 94ec3bfcbb
commit 0ddad5010a

View File

@@ -329,11 +329,6 @@ export function Player({ className }: PlayerProps) {
</DropdownMenu>
)}
</div>
{/* {state.playlist && (
<p className="text-xs text-muted-foreground truncate">
{state.playlist.name}
</p>
)} */}
</div>
{/* Progress Bar */}
@@ -503,6 +498,9 @@ export function Player({ className }: PlayerProps) {
{/* Track Info */}
<div className="text-center mb-8">
<div className="flex items-center justify-center gap-3 mb-2">
<h1 className="text-2xl font-bold">
{state.current_sound?.name || 'No track selected'}
</h1>
{state.current_sound && (state.current_sound.extract_url || state.current_sound.id) && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
@@ -535,9 +533,6 @@ export function Player({ className }: PlayerProps) {
</DropdownMenuContent>
</DropdownMenu>
)}
<h1 className="text-2xl font-bold">
{state.current_sound?.name || 'No track selected'}
</h1>
</div>
{state.playlist && (
<p className="text-lg text-muted-foreground">