fix: update lyrics tooltip condition to handle null track safely
All checks were successful
构建扩展程序 / 构建扩展程序 (push) Successful in 48s
构建扩展程序 / 发布至 Chrome 应用商店 (push) Successful in 33s

This commit is contained in:
Astrian Zheng 2025-05-28 16:59:22 +10:00
parent a3ce2be851
commit bfd68e1faa
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA

View File

@ -656,7 +656,7 @@ watch(() => playQueueStore.currentIndex, () => {
</button>
<!-- Show tooltip only on hover, with transition -->
<transition name="lyrics-tooltip-fade">
<div v-if="showLyricsTooltip && getCurrentTrack() === null && !getCurrentTrack()!.song.lyricUrl"
<div v-if="showLyricsTooltip && !getCurrentTrack()?.song.lyricUrl"
class="absolute bottom-10 w-60 left-[-7rem] bg-black/60 backdrop-blur-3xl rounded-md p-2 text-xs flex flex-col text-left shadow-2xl border border-[#ffffff39]">
<div class="font-semibold text-white">这首曲目不提供歌词文本</div>
<div class="text-white/60">启用歌词时将会在下一首有歌词的曲目中显示歌词文本</div>