mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 02:24:09 +01:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user