Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(participants-pane/native) adjusted styles for participants container

Calin Chitud415d02f3573
diff --git a/react/features/participants-pane/components/breakout-rooms/components/native/CollapsibleRoom.js b/react/features/participants-pane/components/breakout-rooms/components/native/CollapsibleRoom.js
index 3845777ea5..273a4a39db 100644
--- a/react/features/participants-pane/components/breakout-rooms/components/native/CollapsibleRoom.js
+++ b/react/features/participants-pane/components/breakout-rooms/components/native/CollapsibleRoom.js
@@ -52,7 +52,7 @@ export const CollapsibleRoom = ({ room, searchString }: Props) => {
// a certain height percentage for every section in order for all to fit
// inside the participants pane container
const containerStyle
- = roomParticipantsNr > 3 && styles.collapsibleRoomContainer;
+ = roomParticipantsNr > 2 && styles.collapsibleRoomContainer;
return (
<CollapsibleList
diff --git a/react/features/participants-pane/components/native/MeetingParticipantList.js b/react/features/participants-pane/components/native/MeetingParticipantList.js
index 8d0acdf3e8..d916602ebc 100644
--- a/react/features/participants-pane/components/native/MeetingParticipantList.js
+++ b/react/features/participants-pane/components/native/MeetingParticipantList.js
@@ -207,7 +207,7 @@ class MeetingParticipantList extends PureComponent<Props> {
// If there are only meeting participants available,
// we take the full container height
const onlyMeetingParticipants
- = breakoutRooms?.length === 0 && lobbyParticipants.length === 0;
+ = breakoutRooms?.length === 0 && lobbyParticipants?.length === 0;
const containerStyle
= onlyMeetingParticipants
? styles.meetingListFullContainer : styles.meetingListContainer;
diff --git a/react/features/participants-pane/components/native/ParticipantsPane.js b/react/features/participants-pane/components/native/ParticipantsPane.js
index c7e014fcbd..62b5215d31 100644
--- a/react/features/participants-pane/components/native/ParticipantsPane.js
+++ b/react/features/participants-pane/components/native/ParticipantsPane.js
@@ -19,10 +19,7 @@ import {
getCurrentRoomId,
isInBreakoutRoom
} from '../../../breakout-rooms/functions';
-import {
- getKnockingParticipants,
- getLobbyEnabled
-} from '../../../lobby/functions';
+import { getKnockingParticipants } from '../../../lobby/functions';
import MuteEveryoneDialog
from '../../../video-menu/components/native/MuteEveryoneDialog';
import {
@@ -67,15 +64,14 @@ const ParticipantsPane = () => {
&& participantsCount > 2 && rooms.length > 1;
const addBreakoutRoom
= _isBreakoutRoomsSupported && !hideAddRoomButton && isLocalModerator;
- const lobbyEnabled = useSelector(getLobbyEnabled);
const lobbyParticipants = useSelector(getKnockingParticipants);
return (
<JitsiScreen style = { styles.participantsPaneContainer }>
<LobbyParticipantList />
<MeetingParticipantList
- breakoutRooms = { _isBreakoutRoomsSupported && rooms }
- lobbyParticipants = { lobbyEnabled && lobbyParticipants }
+ breakoutRooms = { rooms }
+ lobbyParticipants = { lobbyParticipants }
searchString = { searchString }
setSearchString = { setSearchString } />
{