-
Notifications
You must be signed in to change notification settings - Fork 577
fix(call): polish speaker view #19216
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
base: main
Are you sure you want to change the base?
Changes from 3 commits
5a38215
19b4bef
7f695a8
7f064f6
7225340
fb58d55
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -465,8 +465,10 @@ export default { | |
| gridTemplateColumns: `repeat(${getHalfColumnCount(columns)}, ${halfColumnWidth})`, | ||
| gridTemplateRows: `repeat(${rows}, minmax(${this.dpiAwareMinHeight}px, 1fr))`, | ||
| // The columns no longer take the whole width once they are | ||
| // capped, so the grid itself has to center them | ||
| justifyContent: 'center', | ||
| // capped, so the grid itself has to place them. A stripe holding | ||
| // a single tile keeps it at the inline end, where the tiles of a | ||
| // fuller stripe end as well, rather than in the middle. | ||
| justifyContent: this.isStripe && this.totalTiles === 1 ? 'end' : 'center', | ||
| } | ||
| }, | ||
|
|
||
|
|
@@ -669,6 +671,25 @@ export default { | |
| // Kept out of the grid itself, whose measured height is the height of its | ||
| // tiles | ||
| padding-block: var(--grid-gap); | ||
| // Keeps the tiles off the rounded corners of the card | ||
| padding-inline: var(--grid-gap); | ||
|
|
||
| // The card the tiles sit on. It is pulled up out of the bottom of the call | ||
| // view and pushed back down when it collapses, so only the corners it leads | ||
| // with are rounded | ||
| .grid-main-wrapper:not(.overlap) & { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc @nimishavijay for opinion
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also agree, because the bottom bar shares the same color as the call view background so the card looks it coming out of nowhere
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see the issue with not having a background at all. We are losing more pixel space if we add this and visually creating 2 "lines"between the main speaker and the rest of the participants. If we do want to have a background then I'd vote for a the rounded corners
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason we are adding the background is that we received frequent feedback that the control buttons are perceived as detached from the stripe when there is not full line of participants. I have added the background specifically for that reason so that is why I am reverting it back. Maybe there is a better approach? |
||
| background-color: #262626; | ||
| border-start-start-radius: var(--border-radius-container); | ||
| border-start-end-radius: var(--border-radius-container); | ||
| } | ||
|
|
||
| // A stripe overlapping the promoted video takes no card of its own, which | ||
| // would band that video across: its tiles - the self camera, the only one | ||
| // left in a one to one call - are lifted off the call by a shadow instead | ||
| .overlap & :deep(.localVideoContainer), | ||
| .overlap & :deep(.video-container-grid) { | ||
| box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sharp eye, I check if it is harmless to add a few pixels down |
||
| } | ||
| } | ||
|
|
||
| .dev-mode-video { | ||
|
|
||



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 probably needs a guard for
noLocalVideoReserve- so if it's three people, but your video will be hidden, don't shift a sole person in stripe to your placeThere 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.
But then, one video will be centered in the middle which is an issue at the moment
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.
maybe put it to 'start', if it's not you?