1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 16:32:54 +08:00

Remove redundant FillFlowContainer from DashboardBeatmapPanel

This commit is contained in:
Andrei Zavatski 2020-08-01 09:11:53 +03:00
parent b5f688e63a
commit 5b1e3e8622

View File

@ -108,25 +108,18 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
Font = OsuFont.GetFont(size: 12, weight: FontWeight.SemiBold), Font = OsuFont.GetFont(size: 12, weight: FontWeight.SemiBold),
Text = SetInfo.Metadata.Artist Text = SetInfo.Metadata.Artist
}, },
new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal,
Spacing = new Vector2(3, 0),
Margin = new MarginPadding { Top = 2 },
Children = new[]
{
new LinkFlowContainer(f => f.Font = OsuFont.GetFont(size: 10, weight: FontWeight.SemiBold)) new LinkFlowContainer(f => f.Font = OsuFont.GetFont(size: 10, weight: FontWeight.SemiBold))
{ {
AutoSizeAxes = Axes.Both AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,
Spacing = new Vector2(3),
Margin = new MarginPadding { Top = 2 }
}.With(c => }.With(c =>
{ {
c.AddText("by "); c.AddText("by");
c.AddUserLink(SetInfo.Metadata.Author); c.AddUserLink(SetInfo.Metadata.Author);
}), c.AddArbitraryDrawable(CreateInfo());
CreateInfo() })
}
}
} }
} }
}, },