-
Notifications
You must be signed in to change notification settings - Fork 57
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
Conversation
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.
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 |
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.
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.
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.
I think these should be migrated to WithTooltip (https://mattermost.atlassian.net/browse/MM-57219). Something for next Fixathon I suppose.
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
Ticket Link
https://mattermost.atlassian.net/browse/MM-61224