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-61224] Add tooltip to screen source names #893

Merged
merged 1 commit into from
Oct 29, 2024
Merged

[MM-61224] Add tooltip to screen source names #893

merged 1 commit into from
Oct 29, 2024

Conversation

streamer45
Copy link
Collaborator

Summary

We implement a tooltip so that longer source names that it's easy to display the full name in case it gets truncated.

/cc @matthewbirtch

Screenshot

image

Ticket Link

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

@streamer45 streamer45 added the 2: Dev Review Requires review by a core committer label Oct 29, 2024
@streamer45 streamer45 added this to the v1.3.0 / MM v10.3 milestone Oct 29, 2024
@streamer45 streamer45 self-assigned this Oct 29, 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.

Thanks!

@@ -133,7 +134,17 @@ export default class ScreenSourceModal extends React.PureComponent<Props, State>
src={source.thumbnailURL}
/>
</div>
<span style={this.style.sourceLabel as CSSProperties}>{source.name}</span>

<OverlayTrigger
Copy link
Member

Choose a reason for hiding this comment

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

If I'm not mistaken, I think new code should use the new floating-ui framework? (There was a PR by Daniel adding a new tooltip we should use, I think...)
I'll leave it up to you though, considering this is just a small addition.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think these should be migrated to WithTooltip (https://mattermost.atlassian.net/browse/MM-57219). Something for next Fixathon I suppose.

@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 Oct 29, 2024
@streamer45 streamer45 merged commit e906dd2 into main Oct 29, 2024
19 checks passed
@streamer45 streamer45 deleted the MM-61224 branch October 29, 2024 21:58
streamer45 added a commit that referenced this pull request Nov 11, 2024
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