-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Limit maximum tooltip width to prevent overflow #29210
Limit maximum tooltip width to prevent overflow #29210
Conversation
I dunno. This is not worth a custom tooltip to me If we're going to be chasing these instance by instance then I'd rather just honestly see Curious of @ppy/team-client opinion. |
Agree with the above, should be fairly easy to make it use TFC. |
This reverts commit cbfb569.
…and limit the max width
CommentAuthorLine
tooltip text width not being truncate.OsuTooltip
maximum width to prevent overflow
OsuTooltip
maximum width to prevent overflowOsuTooltip
maximum width to prevent overflow
I've changed the |
Requesting one more review to confirm I haven't gone off the rails with my suggestions (especially maximum size of 500). |
@smoogipoo how are you testing this? is there a test scene i'm missing? |
I think there's no test scene to test the tooltips, I think I could probably open a pr to implement that. |
I've written the unit test now, not sure if I have to open a new pr or just push to this branch |
@normalid-awa you can commit here |
…github.com/jkh675/osu into bugfix/visual/long-commet-tooltip-overflow
Unit test was pushed, One of the test was temporarily disabled due to the o!f issue. ref discussion |
@normalid-awa please check the changes i made to your tests to improve things slightly. otherwise looks fine! |
Oh...., I was a bit confused at that point, the test should be enable but only disabled the problem case. The changes looks good to me! |
OsuTooltip
maximum width to prevent overflow
Replace the default
IHasTooltip
withIHasCustomTooltip<LocalisableString>
and use the new custom tooltipCommentTooltip
withTextFlowContainer
to limit the width of the tooltip.