refactor: remove commented-out playlist name display and adjust track info rendering
This commit is contained in:
@@ -329,11 +329,6 @@ export function Player({ className }: PlayerProps) {
|
|||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{/* {state.playlist && (
|
|
||||||
<p className="text-xs text-muted-foreground truncate">
|
|
||||||
{state.playlist.name}
|
|
||||||
</p>
|
|
||||||
)} */}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Progress Bar */}
|
{/* Progress Bar */}
|
||||||
@@ -503,6 +498,9 @@ export function Player({ className }: PlayerProps) {
|
|||||||
{/* Track Info */}
|
{/* Track Info */}
|
||||||
<div className="text-center mb-8">
|
<div className="text-center mb-8">
|
||||||
<div className="flex items-center justify-center gap-3 mb-2">
|
<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) && (
|
{state.current_sound && (state.current_sound.extract_url || state.current_sound.id) && (
|
||||||
<DropdownMenu>
|
<DropdownMenu>
|
||||||
<DropdownMenuTrigger asChild>
|
<DropdownMenuTrigger asChild>
|
||||||
@@ -535,9 +533,6 @@ export function Player({ className }: PlayerProps) {
|
|||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
)}
|
)}
|
||||||
<h1 className="text-2xl font-bold">
|
|
||||||
{state.current_sound?.name || 'No track selected'}
|
|
||||||
</h1>
|
|
||||||
</div>
|
</div>
|
||||||
{state.playlist && (
|
{state.playlist && (
|
||||||
<p className="text-lg text-muted-foreground">
|
<p className="text-lg text-muted-foreground">
|
||||||
|
|||||||
Reference in New Issue
Block a user