Fix DateTime display sizing on results screen

This commit is contained in:
Dean Herbert
2019-10-25 12:22:19 +09:00
parent 58f19217f7
commit 07f7944fc6

View File

@ -253,9 +253,7 @@ namespace osu.Game.Screens.Ranking.Pages
{ {
this.date = date; this.date = date;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Both;
Width = 140;
Masking = true; Masking = true;
CornerRadius = 5; CornerRadius = 5;
@ -271,22 +269,26 @@ namespace osu.Game.Screens.Ranking.Pages
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Colour = colours.Gray6, Colour = colours.Gray6,
}, },
new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal,
Padding = new MarginPadding { Horizontal = 10, Vertical = 5 },
Spacing = new Vector2(5),
Children = new[]
{
new OsuSpriteText new OsuSpriteText
{ {
Origin = Anchor.CentreLeft,
Anchor = Anchor.CentreLeft,
Text = date.ToShortDateString(), Text = date.ToShortDateString(),
Padding = new MarginPadding { Horizontal = 10, Vertical = 5 },
Colour = Color4.White, Colour = Color4.White,
}, },
new OsuSpriteText new OsuSpriteText
{ {
Origin = Anchor.CentreRight,
Anchor = Anchor.CentreRight,
Text = date.ToShortTimeString(), Text = date.ToShortTimeString(),
Padding = new MarginPadding { Horizontal = 10, Vertical = 5 },
Colour = Color4.White, Colour = Color4.White,
} }
}
},
}; };
} }
} }