Fix small audiobar to middle

auto_join_3.3
Stefan Otto 2020-05-14 04:04:11 +02:00
parent 534e862573
commit 46174b414f
1 changed files with 5 additions and 5 deletions

View File

@ -94,17 +94,17 @@ const styles = () =>
smallBar : smallBar :
{ {
flex : '0 0 auto', flex : '0 0 auto',
margin : '0.3rem',
backgroundSize : '75%', backgroundSize : '75%',
backgroundRepeat : 'no-repeat', backgroundRepeat : 'no-repeat',
backgroundColor : 'rgba(0, 0, 0, 1)', backgroundColor : 'rgba(0, 0, 0, 1)',
cursor : 'pointer', cursor : 'pointer',
transitionProperty : 'opacity, background-color', transitionProperty : 'opacity, background-color',
width : 3, width : 3,
borderRadius : 6, borderRadius : 2,
transitionDuration : '0.25s', transitionDuration : '0.25s',
position : 'absolute', position : 'absolute',
bottom : 0, top : '50%',
transform : 'translateY(-50%)',
'&.level0' : { height: 0 }, '&.level0' : { height: 0 },
'&.level1' : { height: '0.2vh' }, '&.level1' : { height: '0.2vh' },
'&.level2' : { height: '0.4vh' }, '&.level2' : { height: '0.4vh' },
@ -151,9 +151,9 @@ const makeMapStateToProps = (initialState, props) =>
{ {
if (state.peerVolumes[props.id]>state.settings.noiseThreshold) if (state.peerVolumes[props.id]>state.settings.noiseThreshold)
{ {
return { return {
volume : Math.round((state.peerVolumes[props.id]+100) / 10) volume : Math.round((state.peerVolumes[props.id]+100) / 10)
}; };
} }
else else
{ {