diff --git a/bigbluebutton-html5/imports/ui/components/media/component.jsx b/bigbluebutton-html5/imports/ui/components/media/component.jsx
index 12e2222949..543d91fe2d 100644
--- a/bigbluebutton-html5/imports/ui/components/media/component.jsx
+++ b/bigbluebutton-html5/imports/ui/components/media/component.jsx
@@ -74,21 +74,29 @@ export default class Media extends Component {
0
+ && (
+ webcamPlacement !== 'left'
+ || webcamPlacement !== 'right'
)
- ? '100%'
- : '80%',
- minHeight: BROWSER_ISMOBILE && window.innerWidth > window.innerHeight ? '50%' : '20%',
- maxWidth: (
+ && (
webcamPlacement === 'top'
|| 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%',
}}
>