feat(participants-pane/native) adjusted styles for when local p is not a moderator (#11349)

* feat(participants-pane/native) adjusted styles for when local p is not a moderator
This commit is contained in:
Calinteodor 2022-04-12 14:45:27 +03:00 committed by GitHub
parent 64385d48e9
commit 95baf34ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 3 deletions

View File

@ -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

View File

@ -71,6 +71,7 @@ const ParticipantsPane = () => {
<LobbyParticipantList />
<MeetingParticipantList
breakoutRooms = { rooms }
isLocalModerator = { isLocalModerator }
lobbyParticipants = { lobbyParticipants }
searchString = { searchString }
setSearchString = { setSearchString } />

View File

@ -216,8 +216,12 @@ export default {
width: '100%'
},
notLocalModeratorContainer: {
height: '100%'
},
meetingListContainer: {
height: '56%'
height: '58%'
},
meetingListFullContainer: {