Browse Source

Merge pull request #6439 from nextcloud/fix-grid-when-the-number-of-videos-is-below-the-limit

Fix grid when the number of videos is below the limit
pull/6424/head
Marco 4 years ago
committed by GitHub
parent
commit
2819892f31
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/CallView/Grid/Grid.vue

2
src/components/CallView/Grid/Grid.vue

@ -650,7 +650,7 @@ export default {
// video components would occupy only the first 2 slots and be too small.
// To solve this, we shrink this 'max grid' we've just created to fit the
// number of videos that we have.
if (this.videosCap !== 0) {
if (this.videosCap !== 0 && this.videosCount > this.videosCap) {
this.shrinkGrid(this.videosCap)
} else {
this.shrinkGrid(this.videosCount)

Loading…
Cancel
Save