WIP: add TODO and small fixies
All checks were successful
Deploy App / build (push) Successful in 1m31s
Deploy App / deploy (push) Successful in 15s

This commit is contained in:
valere
2025-11-11 19:23:33 +01:00
parent 10311256ea
commit f9aeb03f82
12 changed files with 461 additions and 163 deletions

View File

@@ -1,15 +1,11 @@
<template>
<div
class="player fixed left-0 z-50 w-full h-20"
:class="playerStore.currentTrack ? '-bottom-0 opacity-100' : '-bottom-32 opacity-0'"
>
<div class="player fixed left-0 z-50 w-full h-20"
:class="playerStore.currentTrack ? '-bottom-0 opacity-100' : '-bottom-32 opacity-0'">
<div class="flex items-center gap-3 p-2">
<img
v-if="playerStore.getCurrentCoverUrl"
:src="playerStore.getCurrentCoverUrl as string"
alt="Current cover"
class="size-16 object-cover object-center rounded"
>
<NuxtLink v-if="playerStore.currentTrack" :to="`/track/${playerStore.currentTrack.id}`">
<img v-if="playerStore.getCurrentCoverUrl" :src="playerStore.getCurrentCoverUrl as string" alt="Current cover"
class="size-16 object-cover object-center rounded">
</NuxtLink>
<toggleFavorite v-if="playerStore.currentTrack" :track="playerStore.currentTrack" />
<audio ref="audioRef" class="flex-1" controls />
</div>