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