fix(v2): hold the jukebox disc's angle when playback pauses

Pause the spin animation instead of removing it, like the now-playing pill,
so the disc no longer snaps back to its starting angle.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
This commit is contained in:
zurdi
2026-09-17 19:11:37 +02:00
parent 0b1e20504e
commit b84daec449

View File

@@ -653,12 +653,17 @@ function downloadTrack(track: PanelTrack) {
}
}
/* Paused rather than removed, so a pause holds the disc at its current angle. */
.r-v2-stp__vinyl {
animation: r-v2-stp-vinyl-spin 6s linear infinite paused;
}
.r-v2-stp__vinyl--spinning {
animation: r-v2-stp-vinyl-spin 6s linear infinite;
animation-play-state: running;
}
@media (prefers-reduced-motion: reduce) {
.r-v2-stp__vinyl--spinning {
.r-v2-stp__vinyl {
animation: none;
}
}