Fix ptt break layout (#298)

This commit is contained in:
Roman Drozd
2020-05-08 22:26:45 +02:00
committed by GitHub
parent a9e9a1c1fa
commit c5143de647
+16 -15
View File
@@ -132,12 +132,12 @@ const styles = (theme) =>
{
position : 'absolute',
float : 'left',
top : '10%',
top : '25%',
left : '50%',
transform : 'translate(-50%, 0%)',
color : 'rgba(255, 255, 255, 0.7)',
fontSize : '2vs',
backgroundColor : 'rgba(255, 0, 0, 0.5)',
fontSize : '1.3em',
backgroundColor : 'rgba(255, 0, 0, 0.9)',
margin : '4px',
padding : theme.spacing(2),
zIndex : 31,
@@ -322,19 +322,20 @@ const Me = (props) =>
}}
style={spacingStyle}
>
{ me.browser.platform !== 'mobile' &&
<div className={classnames(
classes.ptt,
(micState === 'muted' && me.isSpeaking) ? 'enabled' : null
)}
>
<FormattedMessage
id='me.mutedPTT'
defaultMessage='You are muted, hold down SPACE-BAR to talk'
/>
</div>
}
<div className={classes.viewContainer} style={style}>
{ !smallContainer &&
<div className={classnames(
classes.ptt,
(micState === 'muted' && me.isSpeaking) ? 'enabled' : null
)}
>
<FormattedMessage
id='me.mutedPTT'
defaultMessage='You are muted, hold down SPACE-BAR to talk'
/>
</div>
}
<p className={
classnames(
classes.meTag,