WIP: add TODO and small fixies
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user