Show which track is Now Playing within a playlist

Fixes #147
This commit is contained in:
banaanihillo@protonmail.ch 2024-04-27 13:02:57 +03:00
parent 8729cb82ab
commit 149375ba55
2 changed files with 7 additions and 2 deletions

View file

@ -128,13 +128,17 @@ const openSong = el => {
@click.prevent="artist.getArtist(channel.replace('/channel/', ''))"> @click.prevent="artist.getArtist(channel.replace('/channel/', ''))">
<i class="ign">{{ author ? author.replaceAll(' - Topic', '') : '' }}</i> <i class="ign">{{ author ? author.replaceAll(' - Topic', '') : '' }}</i>
</a> </a>
<span v-if="title === data.state?.title">
<span class="bi-play"></span>
<span>{{ t('title.now_playing') }}</span>
</span>
</span> </span>
<button <button
class="bi bi-three-dots-vertical popup-wrap ign" class="bi bi-three-dots-vertical popup-wrap ign"
@mouseenter="show = true" @mouseenter="show = true"
@mouseleave="show = false" @mouseleave="show = false"
@click.enter="show = !show"> @keyup.enter="show = !show">
<Transition name="fade"> <Transition name="fade">
<div v-if="show" class="popup ign"> <div v-if="show" class="popup ign">
<button <button

View file

@ -18,7 +18,8 @@
"search": "Search", "search": "Search",
"feeds": "Feeds", "feeds": "Feeds",
"offline": "Offline", "offline": "Offline",
"restore_prefs": "Restore preferences" "restore_prefs": "Restore preferences",
"now_playing": "Now Playing"
}, },
"action": { "action": {
"back": "Back", "back": "Back",