fix(Playroom): enhance album cover hover effect with dynamic scaling based on playback state

This commit is contained in:
Astrian Zheng 2025-05-26 21:28:20 +10:00
parent 9f4c5fc0f6
commit f44c718e2d
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA

View File

@ -319,8 +319,9 @@ watch(() => playQueueStore.currentIndex, () => {
<div class="flex flex-col w-96 gap-4" ref="controllerRef">
<!-- Album cover with enhanced hover effect -->
<div ref="albumCover" class="relative">
<img :src="getCurrentTrack().album?.coverUrl"
class="rounded-2xl shadow-2xl border border-white/20 w-96 h-96 transition-transform duration-300 hover:scale-105" />
<img :src="getCurrentTrack().album?.coverUrl" class="rounded-2xl shadow-2xl border border-white/20 w-96 h-96
transition-transform duration-300
" :class="playQueueStore.isPlaying ? 'scale-100' : 'scale-95'" />
</div>
<!-- Song info with enhanced styling -->