Skip to content
Snippets Groups Projects
Unverified Commit bc99a999 authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #8519 from vitormateusalmeida/issue-8518

Fixes maximum width and height when no webcams
parents ecacd176 e1309bf4
No related branches found
No related tags found
No related merge requests found
...@@ -74,21 +74,29 @@ export default class Media extends Component { ...@@ -74,21 +74,29 @@ export default class Media extends Component {
<div <div
className={!swapLayout ? contentClassName : overlayClassName} className={!swapLayout ? contentClassName : overlayClassName}
style={{ style={{
maxHeight: ( maxHeight: usersVideo.length > 0
webcamPlacement === 'left' && (
|| webcamPlacement === 'right' webcamPlacement !== 'left'
|| webcamPlacement === 'floating' || webcamPlacement !== 'right'
) )
? '100%' && (
: '80%',
minHeight: BROWSER_ISMOBILE && window.innerWidth > window.innerHeight ? '50%' : '20%',
maxWidth: (
webcamPlacement === 'top' webcamPlacement === 'top'
|| webcamPlacement === 'bottom' || webcamPlacement === 'bottom'
|| webcamPlacement === 'floating'
) )
? '100%' ? '80%'
: '80%', : '100%',
minHeight: BROWSER_ISMOBILE && window.innerWidth > window.innerHeight ? '50%' : '20%',
maxWidth: usersVideo.length > 0
&& (
webcamPlacement !== 'top'
|| webcamPlacement !== 'bottom'
)
&& (
webcamPlacement === 'left'
|| webcamPlacement === 'right'
)
? '80%'
: '100%',
minWidth: '20%', minWidth: '20%',
}} }}
> >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment