Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tileView): Display 3 participants in 1 row #10860

Merged
merged 2 commits into from
Feb 2, 2022

Conversation

hristoterezov
Copy link
Member

No description provided.

damencho
damencho previously approved these changes Jan 26, 2022
@damencho
Copy link
Member

The failure is due to the changes, the remote menu is not visible or something.

const columnsToMaintainASquare = Math.ceil(Math.sqrt(numberOfParticipants));
// When there are 3 participants in the call we want them to be placed on a single row unless the maxColumn setting
// is lower.
const columnsToMaintainASquare = numberOfParticipants === 3 ? 3 : Math.ceil(Math.sqrt(numberOfParticipants));
Copy link
Member

Choose a reason for hiding this comment

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

Nit: can we make that number 3 a constant?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is mostly an exception. What would be the benefit of having constant?

Copy link
Member

Choose a reason for hiding this comment

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

Readability, nothing special.

@robertpin
Copy link
Contributor

IIRC we didn't just want to show 3 people on one row, but even more, depending on the size of the client.

Workaround for the issue when the mouse enter event is not triggered in
the use case where the layout changes and the mouse appears onn top of the
thumbnail. Example: Closing the participant pane.
@hristoterezov
Copy link
Member Author

IIRC we didn't just want to show 3 people on one row, but even more, depending on the size of the client.

@robertpin Good idea! I will discuss it with Emil! But lets leave it for version 2.

@hristoterezov hristoterezov merged commit 2a8d0b6 into master Feb 2, 2022
@hristoterezov hristoterezov deleted the 3-participant-in-row branch February 2, 2022 23:37
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.

4 participants