{#if currentlyPlaying}
{#if !expanded}
{currentlyPlaying.name}
{currentlyPlaying.artists?.map((artist) => artist.name).join(', ') || currentlyPlaying.uploader?.name}
{ currentTimeTimestamp.innerText = formatTime(event.detail.value) seeking = true }} on:seeked={(event) => { currentTime = event.detail.value seeking = false }} />
{ if (volume > 0) localStorage.setItem('volume', volume.toString()) }} />
{:else}
{#key currentlyPlaying} {/key}
UP NEXT {#each $queue.list as item} {@const isCurrent = item === currentlyPlaying} {/each}
{ expandedCurrentTimeTimestamp.innerText = formatTime(event.detail.value) seeking = true }} on:seeked={(event) => { currentTime = event.detail.value seeking = false }} />
(scrollDirection *= -1)} id="scrollingText" class="{scrollDistance > 0 ? (scrollDirection > 0 ? 'scrollLeft' : 'scrollRight') : ''} absolute whitespace-nowrap text-3xl">{currentlyPlaying.name}
{ if (volume > 0) localStorage.setItem('volume', volume.toString()) }} />
{/if}
{/if}