Skip to content

Commit

Permalink
fix(filmstrip) remove border from filmstrip (jitsi#10367)
Browse files Browse the repository at this point in the history
  • Loading branch information
quitrk authored and humbledroid committed Jan 6, 2022
1 parent 0efad68 commit 6622814
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion react/features/filmstrip/components/web/Thumbnail.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ class Thumbnail extends Component<Props, State> {

const { canPlayEventReceived } = this.state;
const {
_currentLayout,
_height,
_isHidden,
_isScreenSharing,
Expand All @@ -556,6 +557,8 @@ class Thumbnail extends Component<Props, State> {
style
} = this.props;

const tileViewActive = _currentLayout === LAYOUTS.TILE_VIEW;

let styles: {
avatar: Object,
thumbnail: Object,
Expand All @@ -578,7 +581,7 @@ class Thumbnail extends Component<Props, State> {
if (!_isScreenSharing) {
if (canPlayEventReceived || _participant.local) {
videoStyles = {
objectFit: _height > 320 ? 'cover' : 'contain'
objectFit: _height < 320 && tileViewActive ? 'contain' : 'cover'
};
} else {
videoStyles = {
Expand Down

0 comments on commit 6622814

Please sign in to comment.