1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-02 08:49:54 +08:00

Merge pull request #32268 from bdach/fix-leaderboard-cutoff

Fix leaderboard date text being cut off sometimes
This commit is contained in:
Dean Herbert
2025-03-08 18:54:37 +09:00
committed by GitHub
Unverified
2 changed files with 7 additions and 2 deletions
@@ -181,6 +181,11 @@ namespace osu.Game.Tests.Visual.SongSelect
{
AddStep(@"Set scope", () => leaderboard.Scope = BeatmapLeaderboardScope.Global);
AddStep(@"New Scores", () => leaderboard.SetScores(generateSampleScores(new BeatmapInfo())));
AddStep(@"New Scores with teams", () => leaderboard.SetScores(generateSampleScores(new BeatmapInfo()).Select(s =>
{
s.User.Team = new APITeam();
return s;
})));
}
[Test]
@@ -473,7 +478,7 @@ namespace osu.Game.Tests.Visual.SongSelect
Accuracy = 0.5140,
MaxCombo = 244,
TotalScore = 1707827,
Date = DateTime.Now.AddMonths(-3),
Date = DateTime.Now.AddMonths(-10),
Mods = new Mod[] { new OsuModHidden(), new OsuModHardRock(), },
BeatmapInfo = beatmapInfo,
BeatmapHash = beatmapInfo.Hash,
@@ -190,7 +190,7 @@ namespace osu.Game.Online.Leaderboards
RelativeSizeAxes = Axes.Y,
Direction = FillDirection.Horizontal,
Spacing = new Vector2(5f, 0f),
Width = 114f,
Width = 130f,
Masking = true,
Children = new Drawable[]
{