aboutsummaryrefslogtreecommitdiff
path: root/web/script/player
diff options
context:
space:
mode:
Diffstat (limited to 'web/script/player')
-rw-r--r--web/script/player/mod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/script/player/mod.ts b/web/script/player/mod.ts
index 2dad414..995bd4c 100644
--- a/web/script/player/mod.ts
+++ b/web/script/player/mod.ts
@@ -90,7 +90,7 @@ function initialize_player(el: HTMLElement, node_id: string) {
...(kind == "audio" ? volume() : []),
player.active_tracks.map(_ =>
- e("div", ...(player.tracks ?? [])
+ e("ul", { class: "jsp-track-list" }, ...(player.tracks ?? [])
.map((track, index) => ({ index, track }))
.filter(({ track }) => get_track_kind(track.kind) == kind)
.map(({ track, index }): HTMLElement => {
@@ -99,7 +99,7 @@ function initialize_player(el: HTMLElement, node_id: string) {
player.set_track_enabled(index, !active)
// TODO show loading indicator
}
- return e("div",
+ return e("li", { class: active ? ["active"] : [] },
e("button", { class: "jsp-track-state", onclick }, active ? "-" : "+"), " ",
e("span", { class: "jsp-track-name" }, track.name), " ",
e("span", { class: "jsp-track-lang" }, track.language)