feat(participants-pane) added style comments

This commit is contained in:
Calin Chitu 2022-01-12 18:48:12 +02:00 committed by Calinteodor
parent 73f3409f0d
commit 1c360ce5b7
3 changed files with 12 additions and 0 deletions

View File

@ -47,6 +47,10 @@ export const CollapsibleRoom = ({ room, searchString }: Props) => {
const title
= `${room.name
|| t('breakoutRooms.mainRoom')} (${roomParticipantsNr})`;
// Regarding the fact that we have 3 sections, we apply
// a certain height percentage for every section in order for all to fit
// inside the participants pane container
const containerStyle
= roomParticipantsNr > 3 && styles.collapsibleRoomContainer;

View File

@ -54,6 +54,10 @@ const LobbyParticipantList = ({ theme }: Props) => {
}
</View>
);
// Regarding the fact that we have 3 sections, we apply
// a certain height percentage for every section in order for all to fit
// inside the participants pane container
const style = participants.length > 1 && styles.lobbyListContent;
return (

View File

@ -188,6 +188,10 @@ class MeetingParticipantList extends PureComponent<Props> {
? `${_currentRoom.name} (${_participantsCount})`
: t('participantsPane.headings.participantsList',
{ count: _participantsCount });
// Regarding the fact that we have 3 sections, we apply
// a certain height percentage for every section in order for all to fit
// inside the participants pane container
const containerStyle
= _participantsCount > 3 && styles.meetingListContainer;