diff --git a/src/lib/components/media/mediaCard.svelte b/src/lib/components/media/mediaCard.svelte index c341646..85aef44 100644 --- a/src/lib/components/media/mediaCard.svelte +++ b/src/lib/components/media/mediaCard.svelte @@ -50,10 +50,10 @@ -
+
{mediaData.name}
- + {#each mediaData.artists as artist} {@const listIndex = mediaData.artists.indexOf(artist)} diff --git a/src/lib/components/media/miniPlayer.svelte b/src/lib/components/media/miniPlayer.svelte index 69c5009..d6bd266 100644 --- a/src/lib/components/media/miniPlayer.svelte +++ b/src/lib/components/media/miniPlayer.svelte @@ -9,7 +9,9 @@ $: song = $currentlyPlaying - let songLiked = false + let volume + let songLiked = false, + songPlaying = false const formatDuration = (timeMilliseconds) => { const seconds = Math.floor((timeMilliseconds / 1000) % 60) @@ -17,22 +19,29 @@ return [minutes.toString(), seconds.toString().padStart(2, '0')].join(':') } - - let volume - $: console.log(volume) {#if song} -
+
{#if displayMode === 'vertical'}

Vertical Mode

{:else} -
-
+
+
{song.name} thumbnail -
-
{song.name}
-
{Array.from(song.artists, (artist) => artist.name).join(', ')}
+
+ {song.name} + + {#each song.artists as artist} + {@const listIndex = song.artists.indexOf(artist)} + {artist.name} + {#if listIndex === song.artists.length - 2} + & + {:else if listIndex < song.artists.length - 2} + , + {/if} + {/each} +
-
+
- - + (songPlaying = !songPlaying)}> + ($currentlyPlaying = null)}> @@ -57,15 +66,21 @@
-
+
0:00
{formatDuration(song.duration)}
-
+
- + + + + + + +
@@ -76,6 +91,6 @@ diff --git a/src/lib/components/utility/volumeSlider.svelte b/src/lib/components/utility/volumeSlider.svelte index 74e7123..8573569 100644 --- a/src/lib/components/utility/volumeSlider.svelte +++ b/src/lib/components/utility/volumeSlider.svelte @@ -1,5 +1,6 @@ -
- -
+
+ (muted = !muted)}> + + +