Fix more typos and adjust font size to match web

This commit is contained in:
Joseph Madamba
2023-04-07 21:10:37 -07:00
parent 9e0277b2fd
commit ed208ef127
2 changed files with 5 additions and 4 deletions

View File

@ -286,16 +286,16 @@ namespace osu.Game.Tests.Visual.Online
public void TestBeatmapSetWithGuestDIff() public void TestBeatmapSetWithGuestDIff()
{ {
AddStep("show map", () => overlay.ShowBeatmapSet(createBeatmapSetWithGuestDiff())); AddStep("show map", () => overlay.ShowBeatmapSet(createBeatmapSetWithGuestDiff()));
AddStep("Move mouse to host diff", () => AddStep("move mouse to host diff", () =>
{ {
InputManager.MoveMouseTo(overlay.ChildrenOfType<DifficultyIcon>().ElementAt(0)); InputManager.MoveMouseTo(overlay.ChildrenOfType<DifficultyIcon>().ElementAt(0));
}); });
AddAssert("Guset mapper information not show", () => overlay.ChildrenOfType<BeatmapPicker>().Single().ChildrenOfType<OsuSpriteText>().All(s => s.Text != "BanchoBot")); AddAssert("guest mapper information not shown", () => overlay.ChildrenOfType<BeatmapPicker>().Single().ChildrenOfType<OsuSpriteText>().All(s => s.Text != "BanchoBot"));
AddStep("move mouse to guest diff", () => AddStep("move mouse to guest diff", () =>
{ {
InputManager.MoveMouseTo(overlay.ChildrenOfType<DifficultyIcon>().ElementAt(1)); InputManager.MoveMouseTo(overlay.ChildrenOfType<DifficultyIcon>().ElementAt(1));
}); });
AddAssert("Guset mapper information show", () => overlay.ChildrenOfType<BeatmapPicker>().Single().ChildrenOfType<OsuSpriteText>().Any(s => s.Text == "BanchoBot")); AddAssert("guest mapper information shown", () => overlay.ChildrenOfType<BeatmapPicker>().Single().ChildrenOfType<OsuSpriteText>().Any(s => s.Text == "BanchoBot"));
} }
private APIBeatmapSet createManyDifficultiesBeatmapSet() private APIBeatmapSet createManyDifficultiesBeatmapSet()

View File

@ -90,11 +90,12 @@ namespace osu.Game.Overlays.BeatmapSet
Font = OsuFont.GetFont(size: 17, weight: FontWeight.Bold) Font = OsuFont.GetFont(size: 17, weight: FontWeight.Bold)
}, },
guestMapperContainer = new LinkFlowContainer(s => guestMapperContainer = new LinkFlowContainer(s =>
s.Font = OsuFont.GetFont(weight: FontWeight.Bold, size: 15)) s.Font = OsuFont.GetFont(weight: FontWeight.Bold, size: 11))
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Anchor = Anchor.BottomLeft, Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft, Origin = Anchor.BottomLeft,
Margin = new MarginPadding { Bottom = 1 },
}, },
starRatingContainer = new FillFlowContainer starRatingContainer = new FillFlowContainer
{ {