Added Repeat for a single song

This commit is contained in:
Shiny Nematoda 2022-09-22 14:01:14 +00:00
parent 24c07dae4c
commit 04af1a227d
No known key found for this signature in database
GPG key ID: 6506D50F5613A42D
2 changed files with 23 additions and 19 deletions

View file

@ -205,9 +205,14 @@ function Save() {
id="loop-btn"
title="Loop"
aria-label="Loop"
class="bi bi-infinity"
:data-active="player.state.loop"
@click="player.toggle('loop')"></button>
class="bi"
:class="player.state.loop < 2 ? 'bi-repeat' : 'bi-repeat-1'"
:data-active="player.state.loop > 0"
@click="
player.state.loop < 2
? player.state.loop++
: (player.state.loop = 0)
"></button>
</div>
</Transition>
</div>
@ -237,12 +242,11 @@ function Save() {
font-size: 2rem;
animation: blink infinite ease 1s;
}
.bi-volume-up {
.bi-volume-up,
.bi-repeat,
.bi-repeat-1 {
font-size: 1.5rem !important;
}
.bi-infinity {
font-size: 1.75rem !important;
}
.ml-auto {
margin-left: auto;
}