feature: Show which track is Now Playing within a playlist (#164)

Fixes #147

Reviewed-on: https://codeberg.org/Hyperpipe/Hyperpipe/pulls/164
Co-authored-by: banaanihillo <banaanihillo@protonmail.ch>
Co-committed-by: banaanihillo <banaanihillo@protonmail.ch>
This commit is contained in:
banaanihillo 2024-04-28 05:28:35 +00:00 committed by Shiny Nematoda
parent 34564460d9
commit e0dd732dee
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/', ''))">
<i class="ign">{{ author ? author.replaceAll(' - Topic', '') : '' }}</i>
</a>
<span v-if="play === data.state?.url">
<span class="bi-play"></span>
<span>{{ t('title.now_playing') }}</span>
</span>
</span>
<button
class="bi bi-three-dots-vertical popup-wrap ign"
@mouseenter="show = true"
@mouseleave="show = false"
@click.enter="show = !show">
@keyup.enter="show = !show">
<Transition name="fade">
<div v-if="show" class="popup ign">
<button

View file

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