style(ui): match exact requested volume slider design

This commit is contained in:
2026-04-20 18:20:37 +02:00
parent 0a279cab25
commit f64e827d22
2 changed files with 6 additions and 3 deletions

View File

@@ -602,6 +602,7 @@ const initPlayer = (): void => {
if (volumeRange) {
const volumeValue = video.muted ? 0 : Math.round(video.volume * 100)
volumeRange.value = String(volumeValue)
volumeRange.style.setProperty('--volume-percent', `${volumeValue}%`)
}
if (!video.muted && video.volume > 0) {
lastKnownVolume = video.volume