From 5129dfabe325721cf33671bd25f179a70878c693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Souza?= Date: Mon, 8 Apr 2024 14:43:58 -0300 Subject: [PATCH] fix grid mode limit --- .../imports/ui/components/video-provider/service.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/video-provider/service.js b/bigbluebutton-html5/imports/ui/components/video-provider/service.js index 5c24eefe04..1852523614 100755 --- a/bigbluebutton-html5/imports/ui/components/video-provider/service.js +++ b/bigbluebutton-html5/imports/ui/components/video-provider/service.js @@ -531,6 +531,8 @@ class VideoService { getGridUsers(users, streams) { const pageSize = this.getMyPageSize(); + const gridSize = this.getGridSize(); + const isPaginationDisabled = !this.isPaginationEnabled() || pageSize === 0; const isGridEnabled = this.isGridEnabled(); @@ -545,7 +547,7 @@ class VideoService { ).map((user) => ({ isGridItem: true, ...user, - })); + })).slice(0, gridSize - streams.length); } return gridUsers; @@ -560,7 +562,7 @@ class VideoService { ).map((user) => ({ isGridItem: true, ...user, - })); + })).slice(0, gridSize - paginatedStreams.length); } return gridUsers; }