feat(songs): show icon on currently playing song in list
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user