fix(tile-view) fix screensharing size in self view (#10634)

clean-up overriden css for tileview video tags
This commit is contained in:
Avram Tudor 2021-12-16 15:33:30 +02:00 committed by GitHub
parent c8b5043d6b
commit ffe74ca68b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 23 deletions

View File

@ -99,19 +99,6 @@
display: block;
margin: 2px;
}
video {
object-fit: contain;
}
/**
* Max-width corresponding to the ASPECT_RATIO_BREAKPOINT from features/filmstrip/constants.
*/
@media only screen and (max-width: 500px) {
video {
object-fit: cover;
}
}
}
}
}

View File

@ -479,17 +479,18 @@ class Thumbnail extends Component<Props, State> {
}
let videoStyles = null;
const doNotStretchVideo = (_height < 320 && tileViewActive)
|| _disableTileEnlargement
|| _isScreenSharing;
if (!_isScreenSharing) {
if (canPlayEventReceived || _participant.local) {
videoStyles = {
objectFit: (_height < 320 && tileViewActive) || _disableTileEnlargement ? 'contain' : 'cover'
};
} else {
videoStyles = {
display: 'none'
};
}
if (canPlayEventReceived || _participant.local) {
videoStyles = {
objectFit: doNotStretchVideo ? 'contain' : 'cover'
};
} else {
videoStyles = {
display: 'none'
};
}
styles = {