Skip to content

feat(mobile): mobile layout overhaul — paginated webcams, compact bars and responsive dialogs - #25340

Merged
prlanzarin merged 15 commits into
bigbluebutton:v4.0.x-developfrom
AtilaU19:task-2711
Aug 5, 2026
Merged

prlanzarin merged 15 commits into
bigbluebutton:v4.0.x-developfrom
AtilaU19:task-2711

Conversation

@AtilaU19

@AtilaU19 AtilaU19 commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Reworks the BigBlueButton HTML5 client layout for mobile (smallOnly /deviceInfo.isMobile), making the webcam area, top bar, action bar, chat,nuser list and the request-unmute dialog behave consistently on small screens. No desktop behavior is intended to change — all rules are gated behind mobilebreakpoints / deviceInfo.isMobile.

Closes Issue(s)

Closes None

More

Screencast.from.26-06-2026.12.35.08.webm
Screencast.from.26-06-2026.12.32.58.webm
Screencast.from.26-06-2026.12.22.34.webm

@coderabbitai

coderabbitai Bot commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

This PR adds mobile-aware sizing and layout changes across the HTML5 client. Toolbar, navbar, audio, connection status, and other button components now use deviceInfo.isMobile or shared mobile sizing constants. Request-unmute, settings, guest-management, crowd-action, and sidebar-navigation UI receive mobile-specific styling or behavior updates. Video provider logic adds mobile sorting, grid-aware pagination, a new page-setting service method, and a mobile pagination bar with swipe handling. Desktop video grid defaults are reduced.

Sequence Diagram(s)

sequenceDiagram
  participant VideoList
  participant VideoService
  participant Hooks
  participant StreamSorting

  Hooks->>StreamSorting: sortMobile(candidates)
  VideoList->>VideoService: setVideoPage(page)
  VideoService->>Hooks: currentVideoPageIndex updates
  Hooks->>VideoList: paginated video streams
Loading

Estimated code review effort: 4 (Complex) | ~60 minutes

Suggested reviewers: prlanzarin, Arthurk12

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the mobile-focused layout overhaul, including paginated webcams, compact bars, and responsive dialogs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The description matches the changeset, which focuses on mobile-only layout and sizing updates across the HTML5 client.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 8

🧹 Nitpick comments (1)
bigbluebutton-html5/imports/ui/components/video-provider/video-list/styles.ts (1)

161-169: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Keep a visible focus state on the mobile pagination arrows.

The new &&:focus / &&:active:focus rules clear the base Button focus styling, but there is no replacement state here. On tablet or keyboard navigation that makes the only page controls hard to track while focused. Add a :focus-visible outline/ring instead of removing the focus treatment entirely.

Also applies to: 177-179

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@bigbluebutton-html5/imports/ui/components/video-provider/video-list/styles.ts`
around lines 161 - 169, The button overrides in the mobile pagination arrow
styles remove the default focus treatment without adding a replacement, so
update the relevant styled rules in the video list styles to preserve a visible
keyboard focus state. In the pagination button styling blocks (including the
repeated arrow styles), keep the transparent background reset if needed but add
a clear :focus-visible outline or ring for the controls instead of relying on
&&:focus and &&:active:focus to suppress focus styling.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@bigbluebutton-html5/imports/ui/components/connection-status/button/styles.js`:
- Around line 25-29: The mobile tap target in the connection status button
styles is being shrunk by using mobileNavbarButtonSize, which makes the navbar
control too small on touch devices. Update the buttonWrapper span styling in the
connection-status button styles to use a larger touch-friendly size instead of
mobileNavbarButtonSize, and keep the actionable area large enough for mobile use
while preserving the existing layout structure.

In
`@bigbluebutton-html5/imports/ui/components/nav-bar/leave-meeting-button/styles.js`:
- Around line 30-43: The mobile styles for the leave meeting button are hiding
the shared icon span from Button markup, which removes the logout glyph instead
of just the text label. Update the selector in leave-meeting-button/styles.js to
target the label node only, or adjust the LeaveMeetingButton/Button rendering so
hideLabel is mobile-aware and the icon span remains visible while the label is
suppressed.

In
`@bigbluebutton-html5/imports/ui/components/nav-bar/options-dropdown/styles.js`:
- Around line 23-47: The mobile options trigger in the options dropdown styles
is no longer square because the `smallOnly` rule on `& > span:first-of-type`
overrides the width to auto while only `mobileNavbarButtonSize` is applied to
height. Update the `styles.js` rules for `smallOnly` so `& > span:first-of-type`
uses the same `mobileNavbarButtonSize` token for width and min-width as well as
height, keeping the trigger consistent with the other navbar buttons.

In `@bigbluebutton-html5/imports/ui/components/nav-bar/styles.js`:
- Around line 124-137: The mobile navbar spacing in the styles block for the
smallOnly media query is hard-coded to left-side spacing, so it breaks RTL
layouts. Update the navbar styling in styles.js to use logical properties or add
[dir="rtl"] overrides for the padding and last-child offset, making sure the gap
behavior around the nav container and trailing controls is mirrored correctly in
both directions.

In
`@bigbluebutton-html5/imports/ui/components/request-unmute-modal/component.jsx`:
- Around line 48-50: The deny button label in RequestModalButton is using a
different breakpoint check than the compact modal styling, which can leave the
short layout paired with the longer desktop copy. Update the label selection in
the request-unmute modal component to use the same small-screen predicate as the
styles in RequestModalButton and styles.js (the smallOnly condition), so the
mobile/compact deny message is shown whenever the compact layout is active.

In `@bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts`:
- Around line 789-798: The mobile candidate-building branch in the video
provider hook ignores the same audio-only visibility rules used in the
non-mobile path. Update the logic in the hooks/index.ts flow around the
candidate list construction so audio-only users are only appended on mobile when
the relevant settings allow it, reusing the existing showAudioOnlyOnFirstPage,
isUnifiedLayout, and maxAudioOnlyUsers checks (or explicitly separate mobile
behavior in config). Keep the gridUsers handling consistent with the same gating
if needed.
- Around line 298-299: The grid toggle is being read from the default in-memory
storage instead of the session-backed source, so the hook can disagree with
VideoService.isGridEnabled() and affect sizing, subscriptions, and candidate
assembly. Update the hook that uses useStorageKey('isGridEnabled') to read from
Session-backed storage (or a shared helper/hook that does so), and apply the
same change in the other affected locations so all grid state comes from the
same source.

In `@bigbluebutton-html5/imports/ui/components/video-provider/stream-sorting.ts`:
- Around line 187-209: The mobile comparator in sortMobile currently treats all
pinned items as one bucket and then falls through to activity/name sorting,
which can break the pinned moderator-first contract. Update sortMobile to accept
and use the existing moderatorFirst ordering from useVideoStreams, and when both
items are pinned, reuse the same pin-priority logic already used elsewhere so
pinned moderators stay ahead of pinned non-moderators before any
lastFloorTimeItem or UserListService.sortUsersByName tie-breakers are applied.

---

Nitpick comments:
In
`@bigbluebutton-html5/imports/ui/components/video-provider/video-list/styles.ts`:
- Around line 161-169: The button overrides in the mobile pagination arrow
styles remove the default focus treatment without adding a replacement, so
update the relevant styled rules in the video list styles to preserve a visible
keyboard focus state. In the pagination button styling blocks (including the
repeated arrow styles), keep the transparent background reset if needed but add
a clear :focus-visible outline or ring for the controls instead of relying on
&&:focus and &&:active:focus to suppress focus styling.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: a6bb710a-87d3-4e3c-b8ad-028dbbf6fbb4

📥 Commits

Reviewing files that changed from the base of the PR and between a3d63a7 and 215fee2.

📒 Files selected for processing (40)
  • bigbluebutton-html5/imports/ui/components/actions-bar/component.jsx
  • bigbluebutton-html5/imports/ui/components/actions-bar/media-area/component.tsx
  • bigbluebutton-html5/imports/ui/components/actions-bar/presentation-options/component.jsx
  • bigbluebutton-html5/imports/ui/components/actions-bar/quick-poll-dropdown/component.jsx
  • bigbluebutton-html5/imports/ui/components/actions-bar/raise-hand-button/component.jsx
  • bigbluebutton-html5/imports/ui/components/actions-bar/reactions-button/component.jsx
  • bigbluebutton-html5/imports/ui/components/actions-bar/screenshare/component.jsx
  • bigbluebutton-html5/imports/ui/components/actions-bar/styles.js
  • bigbluebutton-html5/imports/ui/components/actions-bar/swap-presentation/component.tsx
  • bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-captions/button/component.tsx
  • bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/component.tsx
  • bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/LiveSelection.tsx
  • bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/listenOnly.tsx
  • bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/muteToggle.tsx
  • bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-header/chat-actions/component.tsx
  • bigbluebutton-html5/imports/ui/components/common/button/styles.js
  • bigbluebutton-html5/imports/ui/components/connection-status/button/styles.js
  • bigbluebutton-html5/imports/ui/components/layout/defaultValues.js
  • bigbluebutton-html5/imports/ui/components/nav-bar/component.jsx
  • bigbluebutton-html5/imports/ui/components/nav-bar/leave-meeting-button/styles.js
  • bigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/styles.ts
  • bigbluebutton-html5/imports/ui/components/nav-bar/options-dropdown/component.jsx
  • bigbluebutton-html5/imports/ui/components/nav-bar/options-dropdown/styles.js
  • bigbluebutton-html5/imports/ui/components/nav-bar/styles.js
  • bigbluebutton-html5/imports/ui/components/request-unmute-modal/component.jsx
  • bigbluebutton-html5/imports/ui/components/request-unmute-modal/styles.js
  • bigbluebutton-html5/imports/ui/components/settings/submenus/application/component.jsx
  • bigbluebutton-html5/imports/ui/components/sidebar-navigation/styles.ts
  • bigbluebutton-html5/imports/ui/components/user-list/crowd-action-buttons/component.tsx
  • bigbluebutton-html5/imports/ui/components/user-list/guest-management/waiting-users/styles.ts
  • bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts
  • bigbluebutton-html5/imports/ui/components/video-provider/service.ts
  • bigbluebutton-html5/imports/ui/components/video-provider/stream-sorting.ts
  • bigbluebutton-html5/imports/ui/components/video-provider/video-button/component.tsx
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/styles.ts
  • bigbluebutton-html5/imports/ui/stylesheets/styled-components/general.js
  • bigbluebutton-html5/imports/ui/stylesheets/styled-components/globalStyles.js
  • bigbluebutton-html5/private/config/settings.yml
  • bigbluebutton-html5/public/locales/en.json
💤 Files with no reviewable changes (1)
  • bigbluebutton-html5/imports/ui/components/actions-bar/styles.js

Comment on lines +25 to +29
& .buttonWrapper > span:first-of-type {
width: ${mobileNavbarButtonSize};
height: ${mobileNavbarButtonSize};
min-width: ${mobileNavbarButtonSize};
padding: 0 !important;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Don't shrink this mobile tap target to 1.75rem.

mobileNavbarButtonSize is 1.75rem in bigbluebutton-html5/imports/ui/stylesheets/styled-components/general.js, so this reduces the actionable area here to ~28px on mobile. That's too small for a navbar control and makes the status menu harder to hit on touch screens.

Proposed fix
   `@media` ${smallOnly} {
     & .buttonWrapper > span:first-of-type {
-      width: ${mobileNavbarButtonSize};
-      height: ${mobileNavbarButtonSize};
-      min-width: ${mobileNavbarButtonSize};
+      width: 2.75rem;
+      height: 2.75rem;
+      min-width: 2.75rem;
       padding: 0 !important;
       box-sizing: border-box;
       display: flex;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
& .buttonWrapper > span:first-of-type {
width: ${mobileNavbarButtonSize};
height: ${mobileNavbarButtonSize};
min-width: ${mobileNavbarButtonSize};
padding: 0 !important;
& .buttonWrapper > span:first-of-type {
width: 2.75rem;
height: 2.75rem;
min-width: 2.75rem;
padding: 0 !important;
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@bigbluebutton-html5/imports/ui/components/connection-status/button/styles.js`
around lines 25 - 29, The mobile tap target in the connection status button
styles is being shrunk by using mobileNavbarButtonSize, which makes the navbar
control too small on touch devices. Update the buttonWrapper span styling in the
connection-status button styles to use a larger touch-friendly size instead of
mobileNavbarButtonSize, and keep the actionable area large enough for mobile use
while preserving the existing layout structure.

Comment on lines +30 to +43
@media ${smallOnly} {
width: ${mobileNavbarButtonSize};
height: ${mobileNavbarButtonSize};
min-width: ${mobileNavbarButtonSize};
padding: 0 !important;
border-radius: 50% !important;
font-size: 1rem;
align-items: center;
justify-content: center;

& > span {
display: none !important;
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Don't hide the shared icon span here.

Line 40 targets the ButtonSpan child from the shared Button markup, so this mobile rule removes the logout glyph instead of the label. If exit labels are enabled, the label is then left to overflow inside the 1.75rem circle. Hide the label node instead, or make hideLabel mobile-aware in the component.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@bigbluebutton-html5/imports/ui/components/nav-bar/leave-meeting-button/styles.js`
around lines 30 - 43, The mobile styles for the leave meeting button are hiding
the shared icon span from Button markup, which removes the logout glyph instead
of just the text label. Update the selector in leave-meeting-button/styles.js to
target the label node only, or adjust the LeaveMeetingButton/Button rendering so
hideLabel is mobile-aware and the icon span remains visible while the label is
suppressed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR overhauls the HTML5 client’s mobile layout behavior (small breakpoints / mobile detection), focusing on making webcam pagination, navbar/action bar sizing, sidebar controls, and certain dialogs behave more consistently on small screens.

Changes:

  • Adds a mobile-specific webcam pagination UI (dots/counter + arrows) and introduces a mobile-focused stream sorting/pagination path.
  • Adjusts multiple navbar/action bar controls for smaller touch targets and responsive spacing; updates a few dialogs/menus to behave better on mobile.
  • Updates settings and i18n strings to support the new mobile behaviors (e.g., smaller mobile grid size; new pagination labels).

Reviewed changes

Copilot reviewed 40 out of 40 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
bigbluebutton-html5/public/locales/en.json Adds/adjusts English strings for mobile unmute cancel label and pagination labels.
bigbluebutton-html5/private/config/settings.yml Reduces mobile grid size defaults to support denser mobile pagination behavior.
bigbluebutton-html5/imports/ui/stylesheets/styled-components/globalStyles.js Adds a global class hook to override mobile menu/paper width behavior.
bigbluebutton-html5/imports/ui/stylesheets/styled-components/general.js Introduces shared sizing constants for mobile navbar buttons.
bigbluebutton-html5/imports/ui/components/video-provider/video-list/styles.ts Adds styled components for the new mobile pagination bar/dots/counter.
bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx Implements the mobile pagination bar and hides desktop pagination controls on mobile.
bigbluebutton-html5/imports/ui/components/video-provider/video-button/component.tsx Shrinks the join video button on mobile (md vs lg).
bigbluebutton-html5/imports/ui/components/video-provider/stream-sorting.ts Adds a mobile-specific sorting function for mixed video/audio/grid items.
bigbluebutton-html5/imports/ui/components/video-provider/service.ts Exposes setVideoPage API for direct page selection.
bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts Adds/changes mobile pagination behavior, page sizing rules, and mobile stream selection logic.
bigbluebutton-html5/imports/ui/components/user-list/guest-management/waiting-users/styles.ts Improves mobile layout for guest management action buttons and updates accept-all color.
bigbluebutton-html5/imports/ui/components/user-list/crowd-action-buttons/component.tsx Keeps footer buttons side-by-side on mobile by adjusting min-width layout logic.
bigbluebutton-html5/imports/ui/components/sidebar-navigation/styles.ts Adjusts mobile sidebar toggle sizing/centering to align with new navbar sizing constants.
bigbluebutton-html5/imports/ui/components/settings/submenus/application/component.jsx Locks pagination toggle “on” (and disabled) for mobile UI.
bigbluebutton-html5/imports/ui/components/request-unmute-modal/styles.js Makes the request-unmute modal more compact/responsive on small screens.
bigbluebutton-html5/imports/ui/components/request-unmute-modal/component.jsx Uses a shorter deny label on mobile (“Cancel”).
bigbluebutton-html5/imports/ui/components/nav-bar/styles.js Updates navbar title truncation/spacing and mobile button layout rules.
bigbluebutton-html5/imports/ui/components/nav-bar/options-dropdown/styles.js Adjusts options dropdown trigger sizing/appearance on mobile.
bigbluebutton-html5/imports/ui/components/nav-bar/options-dropdown/component.jsx Enables menu width override behavior for mobile.
bigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/styles.ts Adapts recording indicator sizing for mobile navbar button constraints.
bigbluebutton-html5/imports/ui/components/nav-bar/leave-meeting-button/styles.js Makes leave button circular/compact on mobile (icon-only).
bigbluebutton-html5/imports/ui/components/nav-bar/component.jsx Wraps presentation title in a truncating span to improve overflow behavior.
bigbluebutton-html5/imports/ui/components/layout/defaultValues.js Tweaks a mobile sidebar navigation margin constant.
bigbluebutton-html5/imports/ui/components/connection-status/button/styles.js Adjusts connection status button sizing for mobile navbar.
bigbluebutton-html5/imports/ui/components/common/button/styles.js Tweaks button wrapper behavior and adds circle sizing for md buttons.
bigbluebutton-html5/imports/ui/components/chat/chat-graphql/chat-header/chat-actions/component.tsx Enables the menu width override behavior for chat actions on mobile.
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/muteToggle.tsx Shrinks mute toggle button on mobile (md vs lg).
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/LiveSelection.tsx Consolidates microphone mute toggle rendering path (including mobile).
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/listenOnly.tsx Shrinks listen-only button on mobile (md vs lg).
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/component.tsx Shrinks join-audio button on mobile (md vs lg).
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-captions/button/component.tsx Shrinks captions button on mobile (md vs lg).
bigbluebutton-html5/imports/ui/components/actions-bar/swap-presentation/component.tsx Shrinks swap button on mobile (md vs lg).
bigbluebutton-html5/imports/ui/components/actions-bar/styles.js Removes a small-only margin rule from the action bar right region.
bigbluebutton-html5/imports/ui/components/actions-bar/screenshare/component.jsx Shrinks screenshare button on mobile (md vs lg).
bigbluebutton-html5/imports/ui/components/actions-bar/reactions-button/component.jsx Shrinks reactions button on mobile (md vs lg) and enables menu override behavior.
bigbluebutton-html5/imports/ui/components/actions-bar/raise-hand-button/component.jsx Shrinks raise-hand button on mobile (md vs lg).
bigbluebutton-html5/imports/ui/components/actions-bar/quick-poll-dropdown/component.jsx Shrinks quick poll buttons on mobile (md vs lg).
bigbluebutton-html5/imports/ui/components/actions-bar/presentation-options/component.jsx Shrinks presentation options button on mobile (md vs lg).
bigbluebutton-html5/imports/ui/components/actions-bar/media-area/component.tsx Shrinks media-area button on mobile (md vs lg).
bigbluebutton-html5/imports/ui/components/actions-bar/component.jsx Ensures plugin buttons use md on mobile.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 47 to +61
const PresentationTitle = styled.h1`
font-weight: 400;
color: ${colorWhite};
font-size: ${fontSizeBase};
margin: 0;
padding: 0;
padding: ${lgPadding};
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 30vw;

@media ${smallOnly} {
min-width: 0;
max-width: 100%;
font-size: ${fontSizeSmall};
}
Comment on lines +365 to +367
const limit = videoService.isMobile
? Math.max(userCount, gridSize)
: Math.max(gridSize - visibleStreamCount, 0);
Comment on lines +800 to +810
const sorted = [...candidates].sort(sortMobile);
const total = sorted.length;
const chunkIndex = currentVideoPageIndex * myPageSize;
const paginated = myPageSize > 0
? sorted.slice(chunkIndex, chunkIndex + myPageSize)
: sorted;

const localOffPage = sorted
.filter((vs, index) => videoService.isLocalStream(('stream' in vs) ? vs.stream : '')
&& (index < chunkIndex || index >= chunkIndex + myPageSize))
.map((vs) => ({ ...vs, render: false }));
Comment on lines +674 to +675
if (videoService.isMobile) {
} else if (isPaginationEnabled) {

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx (1)

284-312: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Optional: simplify the reduced-motion guard.

Per SonarCloud, line 290 can use an optional chain (and the project's lint config prefers globalThis). Functionally fine; this is a readability nit.

♻️ Proposed tweak
-    if (window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
+    if (globalThis.matchMedia?.('(prefers-reduced-motion: reduce)').matches) return;
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx`
around lines 284 - 312, The reduced-motion check in playPageTransition can be
simplified for readability. Update the window.matchMedia guard to use optional
chaining and globalThis, keeping the early-return behavior the same when
prefers-reduced-motion is enabled. Locate this in playPageTransition within the
video list component and preserve the existing animation logic around this
check.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@bigbluebutton-html5/imports/ui/components/request-unmute-modal/component.jsx`:
- Around line 48-50: The deny label in request-unmute-modal is computed from a
one-time window.matchMedia(...).matches read, so it won’t update when the
viewport changes while the modal stays open. Update the component to use a
subscribed media-query hook/listener for the smallOnly breakpoint, and drive the
denyLabel logic from that reactive value in component.jsx so the copy updates on
resize/rotation without requiring another rerender.

In
`@bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx`:
- Around line 245-282: The swipe pagination logic in handleTouchEnd currently
assumes LTR by treating negative deltaX as next page, so RTL users get the
opposite behavior. Update the VideoList component to read isRTL (via
layoutSelect or props) and branch in handleTouchEnd so horizontal swipe
direction is mirrored when RTL is active, swapping the
VideoService.getNextVideoPage and VideoService.getPreviousVideoPage calls
accordingly.

---

Nitpick comments:
In
`@bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx`:
- Around line 284-312: The reduced-motion check in playPageTransition can be
simplified for readability. Update the window.matchMedia guard to use optional
chaining and globalThis, keeping the early-return behavior the same when
prefers-reduced-motion is enabled. Locate this in playPageTransition within the
video list component and preserve the existing animation logic around this
check.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: fcea3de2-3fa9-4831-ac9e-a9b7938c03c8

📥 Commits

Reviewing files that changed from the base of the PR and between 215fee2 and 58e3c6f.

📒 Files selected for processing (8)
  • bigbluebutton-html5/imports/ui/components/actions-bar/styles.js
  • bigbluebutton-html5/imports/ui/components/nav-bar/options-dropdown/styles.js
  • bigbluebutton-html5/imports/ui/components/nav-bar/styles.js
  • bigbluebutton-html5/imports/ui/components/request-unmute-modal/component.jsx
  • bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts
  • bigbluebutton-html5/imports/ui/components/video-provider/stream-sorting.ts
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/styles.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/styles.ts
  • bigbluebutton-html5/imports/ui/components/nav-bar/options-dropdown/styles.js
  • bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@sonarqubecloud

sonarqubecloud Bot commented Jul 2, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@ramonlsouza ramonlsouza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit 1b74841 changes grid mode behavior in mobile (grid mode is paginated, overflow tile is disabled, default grid size is reduced).

It leads to a state where the camera pagination limit is ignored, and grid size is used instead (and it paginates this way even when no cameras are being shared). This behavior change is not mentioned in the pull request description, so I'm not sure if it was intentional

grid pagination:

Screencast.From.2026-07-23.10-14-05.mp4

6 cameras being displayed at the same time (default value for camera pagination in mobile is 2)

Screencast.From.2026-07-23.10-16-45.mp4

@AtilaU19

Copy link
Copy Markdown
Contributor Author

Thanks for the review, @ramonlsouza.You were right, I've reverted the mobile grid-mode layout behavior back to the pre-PR baseline in this PR, now the camera pagination limit is respected again (mobilePageSizes, 2) and the grid size no longer overrides it. The overflow "+N" tile is back, so the grid no longer pages through all participants and no longer paginates when no cameras are being shared. Pagination respects the paginationEnabled setting again instead of a forced mobile-only branch.
What's kept is only the new pagination control UI (dots/arrows/counter + swipe), which now sits on top of the standard pagination behavior and replaces the prev/next buttons on mobile. mobileGridSizes is kept at 6. These are restricted to the mobile layout.

We do want to revisit the new mobile layout behavior more holistically, aligning all the flags and situations and deciding the best scenario for each case, but we'll handle that in a separate PR so it gets its own focused review. This PR now sticks to the corrected/safe mobile layout.

@prlanzarin
prlanzarin requested a review from ramonlsouza July 24, 2026 13:48
@prlanzarin
prlanzarin requested review from Arthurk12 and removed request for prlanzarin July 29, 2026 17:32
@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

On mobile the webcam area now always paginates instead of using the grid + overflow-tile model. Both regimes share one pipeline: the camera dock (presentation open) pages by mobilePageSizes, while the grid (presentation closed) pages by mobileGridSizes.
Restyle the nav-bar for mobile (smallOnly): the action buttons become uniform 1.75rem circles with a 0.5rem gap, and the navigation sidebar toggle is sized to 2rem and aligned to the same row.
AtilaU19 and others added 13 commits August 3, 2026 16:16
Refresh the action bar for mobile, mirroring the nav-bar mobile work.
…render mobile options dropdown as compact popover in nav-bar
…audio/mic merge

Add swipe navigation to the mobile camera dock and undo the earlier mobile
audio/mic unification.
- nav-bar: keep the options-dropdown trigger square on mobile and use logical properties so the right-side button spacing mirrors in RTL
- nav-bar: scope the presentation title padding to mobile, restoring the previous desktop spacing (no desktop behavior change intended)
- request-unmute-modal: gate the deny label on the same smallOnly breakpoint as the compact layout instead of deviceInfo.isMobile
- video-provider: preserve the pinned moderator-first order in sortMobile by threading moderatorFirst and reusing pin ordering when both pinned
- video-provider: skip building off-page local streams when pagination is disabled (myPageSize === 0) to avoid duplicated tiles
- video-provider: document the empty mobile branch in useVideoStreams
- video-list: restore a focus-visible outline on the mobile pagination arrows

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The mobile early-return branch of useVideoStreams omitted overflowUsers,
making its inferred type GridItem[] | undefined and failing tsc where
VideoProviderProps requires GridItem[].
The html5 .eslintrc.js declares env: { es6: true }, which does not define
the globalThis global (it lands with es2020), and no-undef is only turned
off in the .ts/.tsx override. The same call in video-list/component.tsx
lints clean for that reason, this .jsx one did not.

Kept globalThis instead of switching back to window: SonarCloud flagged
the opposite on this line (Prefer globalThis over window).
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

@Arthurk12
Arthurk12 self-requested a review August 5, 2026 17:35
@prlanzarin
prlanzarin merged commit 69c48b1 into bigbluebutton:v4.0.x-develop Aug 5, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants