Expand DNDT, add TrackInline, more tracks

This commit is contained in:
2025-08-28 16:03:29 +09:30
parent ba8eec5879
commit ca15fa782d
19 changed files with 179 additions and 24 deletions

View File

@@ -54,7 +54,7 @@ const initialQueue = await Promise.all(
</div>
<div
id="player:time:progress:played"
class="bg-primary absolute top-0 left-0 m-0 h-full p-0"
class="from-primary to-primary-50 absolute top-0 left-0 m-0 h-full bg-gradient-to-r p-0"
>
</div>
</div>
@@ -342,7 +342,7 @@ const initialQueue = await Promise.all(
return { bufferedSeconds: 0, bufferedPercent: 0 };
}
addFromTrackCard(track) {
addToQueue(track, immediatePlay = false) {
var current = this.playlist[this.index];
if (
@@ -356,7 +356,7 @@ const initialQueue = await Promise.all(
this.play();
}
} else {
this.queue(track, true);
this.queue(track, immediatePlay);
}
}
}