mod: 调整迷你播放器

暂时还没有暂停播放和其他控制
This commit is contained in:
Astrian Zheng 2025-08-19 17:11:57 +10:00
parent 0435644ace
commit 024a84b2eb
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA
2 changed files with 13 additions and 6 deletions

View File

@ -71,14 +71,17 @@ watch(
<SearchIcon :size="4" /> <SearchIcon :size="4" />
</button> --> </button> -->
<Player />
<MiniPlayer />
<button <button
class="text-white w-9 h-9 bg-neutral-800/80 border border-[#ffffff39] rounded-full text-center backdrop-blur-3xl flex justify-center items-center" class="text-white w-9 h-9 bg-neutral-800/80 border border-[#ffffff39] rounded-full text-center backdrop-blur-3xl flex justify-center items-center"
@click="presentPreferencePanel = true"> @click="presentPreferencePanel = true">
<CorgIcon :size="4" /> <CorgIcon :size="4" />
</button> </button>
<MiniPlayer />
<Player />
</div> </div>
</div> </div>
</div> </div>

View File

@ -1,16 +1,20 @@
<script setup lang="ts"> <script setup lang="ts">
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import { usePlayQueueStore } from '../stores/usePlayQueueStore'
const route = useRoute() const route = useRoute()
const playQueue = usePlayQueueStore()
</script> </script>
<template> <template>
<RouterLink to="/playroom"> <RouterLink to="/playroom" v-if="playQueue.currentTrack">
<div <div
class="h-9 w-52 bg-neutral-800/80 border border-[#ffffff39] rounded-full backdrop-blur-3xl flex items-center justify-between select-none"> class="h-9 w-52 bg-neutral-800/80 border border-[#ffffff39] rounded-full backdrop-blur-3xl flex items-center justify-between select-none overflow-hidden">
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">
<div class="rounded-full w-9 h-9 bg-gray-600" /> <div class="rounded-full w-9 h-9 bg-gray-600 overflow-hidden">
<div class="text-white">Song title</div> <img :src="playQueue.currentTrack.album?.coverUrl ?? ''" />
</div>
<div class="text-white">{{playQueue.currentTrack.song.name}}</div>
</div> </div>
</div> </div>
</RouterLink> </RouterLink>