Fix waveform not showing on mobile: update CSS height rules and resume AudioContext

This commit is contained in:
Julien Maille 2026-01-10 15:30:04 +01:00
parent 349bba2ab0
commit ace1ad71ab
2 changed files with 7 additions and 1 deletions

View file

@ -44,6 +44,12 @@ export function initializePlayerEvents(player, audioPlayer, scrobbler, ui) {
if (scrobbler.isAuthenticated() && lastFMStorage.isEnabled()) { if (scrobbler.isAuthenticated() && lastFMStorage.isEnabled()) {
scrobbler.updateNowPlaying(player.currentTrack); scrobbler.updateNowPlaying(player.currentTrack);
} }
// Resume AudioContext for waveform on mobile (iOS)
if (waveformGenerator.audioContext.state === 'suspended') {
waveformGenerator.audioContext.resume();
}
updateWaveform(); updateWaveform();
} }

View file

@ -3948,7 +3948,7 @@ img:not([src]), img[src=''] {
grid-area: main; grid-area: main;
} }
.progress-bar, .progress-bar:not(.waveform-loaded),
.volume-bar { .volume-bar {
height: 8px; height: 8px;
} }