Fix vinyl angle persistence on toggle, group player toggle buttons

- Save vinyl rotation angle before flipping vinylMode flag off
- Wrap vinyl + visualizer buttons in .player-toggles container
- Move margin-left:auto from individual buttons to group

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 21:44:48 +03:00
parent 0691e3d338
commit 00d313daa1
3 changed files with 17 additions and 7 deletions

View File

@@ -286,6 +286,8 @@
window.addEventListener('beforeunload', saveVinylAngle);
function toggleVinylMode() {
// Save current angle before turning off (must happen while still in vinyl mode)
if (vinylMode) saveVinylAngle();
vinylMode = !vinylMode;
localStorage.setItem('vinylMode', vinylMode);
applyVinylMode();