@@ -25,10 +25,10 @@ function AudioViewer({ src }) {
25
25
const volume = useRef ( null ) ;
26
26
const play = < FaPlay style = { { paddingLeft : '2px' } } /> ;
27
27
const pause = < FaPause /> ;
28
- const vMute = < FaVolumeMute style = { { cursor : 'pointer' , color : 'red' } } onClick = { toggleVolume } /> ;
29
- const vOff = < FaVolumeOff style = { { cursor : 'pointer' } } onClick = { toggleVolume } /> ;
30
- const vDown = < FaVolumeDown style = { { cursor : 'pointer' } } onClick = { toggleVolume } /> ;
31
- const vUp = < FaVolumeUp style = { { cursor : 'pointer' } } onClick = { toggleVolume } /> ;
28
+ const vMute = < FaVolumeMute style = { { width : '1.05em' , height : '1.05em' , cursor : 'pointer' , color : 'red' , paddingLeft : '2px ' } } onClick = { toggleVolume } /> ;
29
+ const vOff = < FaVolumeOff style = { { cursor : 'pointer' , paddingRight : '9px' } } onClick = { toggleVolume } /> ;
30
+ const vDown = < FaVolumeDown style = { { cursor : 'pointer' , paddingRight : '3px' } } onClick = { toggleVolume } /> ;
31
+ const vUp = < FaVolumeUp style = { { width : '1.23em' , height : '1.23em' , cursor : 'pointer' , paddingLeft : '3px ' } } onClick = { toggleVolume } /> ;
32
32
const [ playing , setPlay ] = useState ( play ) ;
33
33
const [ volumeIndex , changeVolume ] = useState ( vUp ) ;
34
34
@@ -132,7 +132,7 @@ function AudioViewer({ src }) {
132
132
borderRadius : '50%' ,
133
133
padding : '0'
134
134
} } onClick = { playPause } > { playing } </ Button >
135
- < input className = { styles . slider } style = { { marginRight : '1rem ' } } ref = { volume } type = "range" min = "0" max = "1" step = "0.01" defaultValue = "1" > </ input >
135
+ < input className = { styles . slider } style = { { marginRight : '1.5rem ' } } ref = { volume } type = "range" min = "0" max = "1" step = "0.01" defaultValue = "1" > </ input >
136
136
{ volumeIndex }
137
137
</ div >
138
138
</ div >
0 commit comments