UI changes (now responsive) && fixed YT recommendations method

This commit is contained in:
Eclypsed
2024-07-18 22:52:08 -04:00
parent 8453e51d3f
commit f10a184284
25 changed files with 1602 additions and 605 deletions

View File

@@ -47,7 +47,7 @@ class Queue {
}
get upNext() {
if (this.currentSongs.length === 0 && this.currentPosition >= this.currentSongs.length) return null
if (this.currentSongs.length === 0 || this.currentPosition >= this.currentSongs.length) return null
return this.currentSongs[this.currentPosition + 1]
}
@@ -85,6 +85,11 @@ class Queue {
this.updateQueue()
}
/** Re-orders the queue if shuffled, shuffles if not */
public toggleShuffle() {
this.shuffled ? this.reorder() : this.shuffle()
}
/** Starts the next song */
public next() {
if (this.currentSongs.length === 0 || this.currentSongs.length <= this.currentPosition + 1) return