diff --git a/client/src/main/Header.svelte b/client/src/main/Header.svelte index 92c42be6..8b444df6 100644 --- a/client/src/main/Header.svelte +++ b/client/src/main/Header.svelte @@ -17,7 +17,7 @@
-
+
{$config.STATION_NAME}
diff --git a/client/src/main/Player.svelte b/client/src/main/Player.svelte index c9b1bb57..bf6152aa 100644 --- a/client/src/main/Player.svelte +++ b/client/src/main/Player.svelte @@ -164,7 +164,7 @@ }) -
+
{#if items.length > 0} {@const item = items[0]} diff --git a/client/src/main/player/Buttons.svelte b/client/src/main/player/Buttons.svelte index 5b550a47..7cba18ac 100644 --- a/client/src/main/player/Buttons.svelte +++ b/client/src/main/player/Buttons.svelte @@ -19,8 +19,20 @@ export let regenerateNextStopset $: firstItem = items[0] + $: playDisabled = + !items.some((item) => item.type === "stopset") || (firstItem.type === "stopset" && firstItem.playing) + $: pauseDisabled = firstItem.type !== "stopset" || !firstItem.playing + { + if (!playDisabled && event.code === "Space") { + play() + event.preventDefault() + } + }} +/> +
{#if $userConfig.uiMode >= 1} -