Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Simplify calculation by using "slots" property
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
  • Loading branch information
danxuliu committed Jan 14, 2021
commit a7f81afe0c5ad20b262e90140744b4af00a400ec
7 changes: 1 addition & 6 deletions src/components/CallView/Grid/Grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,7 @@ export default {
this.shrinkGrid(this.videosCount)
}
// Once the grid is done, populate it with video components
if (this.isStripe) {
this.displayedVideos = this.videos.slice(0, this.rows * this.columns)
} else {
// `- 1` because we a ccount for the localVideo component (see template)
this.displayedVideos = this.videos.slice(0, this.rows * this.columns - 1)
}
this.displayedVideos = this.videos.slice(0, this.slots)
// Send event to display hint in the topbar component if there's an
// overflow of videos (only if in full-grid mode, not stripe)
if (this.hasVideoOverflow) {
Expand Down