Fix percentage-formatted displays containing a space

This commit is contained in:
smoogipoo
2020-01-29 19:51:24 +09:00
parent d401af2cdd
commit 76af8bea5d
5 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ namespace osu.Game.Overlays.BeatmapSet
int playCount = beatmap?.OnlineInfo?.PlayCount ?? 0;
var rate = playCount != 0 ? (float)passCount / playCount : 0;
successPercent.Text = rate.ToString("P0");
successPercent.Text = rate.ToString("0%");
successRate.Length = rate;
percentContainer.ResizeWidthTo(successRate.Length, 250, Easing.InOutCubic);