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

clean-up overriden css for tileview video tags
pull/10637/head jitsi-meet_6749
Avram Tudor 3 years ago committed by GitHub
parent c8b5043d6b
commit ffe74ca68b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      css/filmstrip/_tile_view.scss
  2. 21
      react/features/filmstrip/components/web/Thumbnail.js

@ -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;
}
}
}
}
}

@ -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 = {

Loading…
Cancel
Save