feat: update volume control range to 0-100 for better granularity

This commit is contained in:
JSC
2025-07-08 13:36:44 +02:00
parent 30317b7617
commit 9714a50c99

View File

@@ -238,8 +238,8 @@ export function MusicPlayer() {
<input <input
type="range" type="range"
min="0" min="0"
max="1" max="100"
step="0.01" step="1"
value={isMuted ? 0 : volume} value={isMuted ? 0 : volume}
onChange={handleVolumeChange} onChange={handleVolumeChange}
className="w-16 h-1 bg-muted rounded-lg appearance-none cursor-pointer slider" className="w-16 h-1 bg-muted rounded-lg appearance-none cursor-pointer slider"
@@ -375,8 +375,8 @@ export function MusicPlayer() {
<input <input
type="range" type="range"
min="0" min="0"
max="1" max="100"
step="0.01" step="1"
value={isMuted ? 0 : volume} value={isMuted ? 0 : volume}
onChange={handleVolumeChange} onChange={handleVolumeChange}
className="w-24 h-2 bg-muted rounded-lg appearance-none cursor-pointer" className="w-24 h-2 bg-muted rounded-lg appearance-none cursor-pointer"