1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 20:03:21 +08:00

Move replies button to a new line

This commit is contained in:
Andrei Zavatski 2020-07-11 06:47:52 +03:00
parent d8b92cc585
commit 789c921af1

View File

@ -163,20 +163,28 @@ namespace osu.Game.Overlays.Comments
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Right = 40 } Padding = new MarginPadding { Right = 40 }
}, },
info = new FillFlowContainer new FillFlowContainer
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal, Direction = FillDirection.Vertical,
Spacing = new Vector2(10, 0),
Children = new Drawable[] Children = new Drawable[]
{ {
new OsuSpriteText info = new FillFlowContainer
{ {
Anchor = Anchor.CentreLeft, AutoSizeAxes = Axes.Both,
Origin = Anchor.CentreLeft, Direction = FillDirection.Horizontal,
Font = OsuFont.GetFont(size: 12), Spacing = new Vector2(10, 0),
Colour = OsuColour.Gray(0.7f), Children = new Drawable[]
Text = HumanizerUtils.Humanize(Comment.CreatedAt) {
new OsuSpriteText
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
Font = OsuFont.GetFont(size: 12),
Colour = OsuColour.Gray(0.7f),
Text = HumanizerUtils.Humanize(Comment.CreatedAt)
},
}
}, },
repliesButton = new RepliesButton(Comment.RepliesCount) repliesButton = new RepliesButton(Comment.RepliesCount)
{ {