-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Conversation
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)); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Readability, nothing special.
4d49165
to
1a14775
Compare
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.
@robertpin Good idea! I will discuss it with Emil! But lets leave it for version 2. |
No description provided.