feat(songs): show icon on currently playing song in list

This commit is contained in:
2024-11-24 23:40:10 +01:00
parent 2b471c6296
commit f430af776b

View File

@@ -5,6 +5,7 @@
// import { AudioLines } from 'lucide-svelte';
import type { Song } from '$lib/song';
import { AudioLines } from 'lucide-svelte';
import type { SubmitFunction } from '../../../routes/songs/[hash]/$types';
interface Props {
@@ -44,12 +45,12 @@
/>
</button>
<!-- <div
class="absolute bottom-6 left-2 size-4 animate-pulse"
class:hidden={$currentlyPlaying?.entry.hash !== song.entry.hash}
>
<AudioLines class="text-primary" />
</div> -->
<div
class="absolute bottom-6 left-2 size-4 animate-pulse"
class:hidden={player.currentlyPlaying?.hash !== song.hash}
>
<AudioLines class="text-primary" />
</div>
</div>
<div class="relative space-y-1 text-sm">
<h3 class="font-medium leading-none">{song.name}</h3>