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 when local p is not a moderator (#11349)

Calinteodor95baf34ba670
diff --git a/react/features/participants-pane/components/native/MeetingParticipantList.js b/react/features/participants-pane/components/native/MeetingParticipantList.js
index d916602ebc..684e342831 100644
--- a/react/features/participants-pane/components/native/MeetingParticipantList.js
+++ b/react/features/participants-pane/components/native/MeetingParticipantList.js
@@ -60,6 +60,11 @@ type Props = {
*/
dispatch: Function,
+ /**
+ * Is the local participant moderator?
+ */
+ isLocalModerator: boolean,
+
/**
* List of participants waiting in lobby.
*/
@@ -191,6 +196,7 @@ class MeetingParticipantList extends PureComponent<Props> {
_showInviteButton,
_sortedRemoteParticipants,
breakoutRooms,
+ isLocalModerator,
lobbyParticipants,
t
} = this.props;
@@ -208,11 +214,14 @@ class MeetingParticipantList extends PureComponent<Props> {
// we take the full container height
const onlyMeetingParticipants
= breakoutRooms?.length === 0 && lobbyParticipants?.length === 0;
- const containerStyle
+ const containerStyleModerator
= onlyMeetingParticipants
? styles.meetingListFullContainer : styles.meetingListContainer;
+ const containerStyle
+ = isLocalModerator
+ ? containerStyleModerator : styles.notLocalModeratorContainer;
const finalContainerStyle
- = _participantsCount > 3 && containerStyle;
+ = _participantsCount > 6 && containerStyle;
return (
<CollapsibleList
diff --git a/react/features/participants-pane/components/native/ParticipantsPane.js b/react/features/participants-pane/components/native/ParticipantsPane.js
index 62b5215d31..c2f727534c 100644
--- a/react/features/participants-pane/components/native/ParticipantsPane.js
+++ b/react/features/participants-pane/components/native/ParticipantsPane.js
@@ -71,6 +71,7 @@ const ParticipantsPane = () => {
<LobbyParticipantList />
<MeetingParticipantList
breakoutRooms = { rooms }
+ isLocalModerator = { isLocalModerator }
lobbyParticipants = { lobbyParticipants }
searchString = { searchString }
setSearchString = { setSearchString } />
diff --git a/react/features/participants-pane/components/native/styles.js b/react/features/participants-pane/components/native/styles.js
index ecdd27ee9a..f81c88bded 100644
--- a/react/features/participants-pane/components/native/styles.js
+++ b/react/features/participants-pane/components/native/styles.js
@@ -216,8 +216,12 @@ export default {
width: '100%'
},
+ notLocalModeratorContainer: {
+ height: '100%'
+ },
+
meetingListContainer: {
- height: '56%'
+ height: '58%'
},
meetingListFullContainer: {