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

[MM-61555] Fix rendering issue with screen sharing player #899

Merged
merged 2 commits into from
Nov 6, 2024
Merged

Conversation

streamer45
Copy link
Collaborator

Summary

This is most likely a CSS regression in Firefox (the way flexbox behaves with a child with 100% height). I was only able to reproduce on version 139 so far. Chrome works as expected.

That said, even the Chrome rendering wasn't great since it created an extra gap between the actual player content and the wrapper. This feels better now.

I added an e2e test and ran it on Firefox, but it didn't reproduce the issue since Playwright currently ships Firefox 131. Enabling the whole pipeline on Firefox requires far more work (tracking at https://mattermost.atlassian.net/browse/MM-61558).

Screenshots

Before

2024-11-06-125509_2560x1080_scrot

After

2024-11-06-131235_2560x1080_scrot

Ticket Link

https://mattermost.atlassian.net/browse/MM-61555

@streamer45 streamer45 added the 2: Dev Review Requires review by a core committer label Nov 6, 2024
@streamer45 streamer45 added this to the v1.3.0 / MM v10.3 milestone Nov 6, 2024
@streamer45 streamer45 requested a review from cpoile November 6, 2024 19:22
@streamer45 streamer45 self-assigned this Nov 6, 2024
Copy link
Member

@cpoile cpoile left a comment

Choose a reason for hiding this comment

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

Awesome, quick fix, thanks!

Comment on lines +55 to +60
// {
// name: 'firefox',
// use: {
// browserName: 'firefox',
// },
// },
Copy link
Member

Choose a reason for hiding this comment

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

Keeping this commented for later?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, that's the plan

Comment on lines +448 to +451
// Verify the player is actually showing something
const box = await popOut.locator('#screen-player').boundingBox();
expect(box?.width).toBeGreaterThan(1000);
expect(box?.height).toBeGreaterThan(500);
Copy link
Member

Choose a reason for hiding this comment

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

nice

@streamer45 streamer45 added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Nov 6, 2024
@streamer45 streamer45 merged commit ac30769 into main Nov 6, 2024
19 checks passed
@streamer45 streamer45 deleted the MM-61555 branch November 6, 2024 20:08
streamer45 added a commit that referenced this pull request Nov 11, 2024
* Fix rendering issue with screen sharing player

* Add comment
streamer45 added a commit that referenced this pull request Nov 11, 2024
* Add tooltip to screen source names (#893)

* [MM-61555] Fix rendering issue with screen sharing player (#899)

* Fix rendering issue with screen sharing player

* Add comment

* Fix incoming call banner tooltip placement in global widget (#901)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants