1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 14:12:56 +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 new LinkFlowContainer(f => f.Font = OsuFont.GetFont(size: 10, weight: FontWeight.SemiBold))
{ {
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Y,
Direction = FillDirection.Horizontal, RelativeSizeAxes = Axes.X,
Spacing = new Vector2(3, 0), Spacing = new Vector2(3),
Margin = new MarginPadding { Top = 2 }, Margin = new MarginPadding { Top = 2 }
Children = new[] }.With(c =>
{ {
new LinkFlowContainer(f => f.Font = OsuFont.GetFont(size: 10, weight: FontWeight.SemiBold)) c.AddText("by");
{ c.AddUserLink(SetInfo.Metadata.Author);
AutoSizeAxes = Axes.Both c.AddArbitraryDrawable(CreateInfo());
}.With(c => })
{
c.AddText("by ");
c.AddUserLink(SetInfo.Metadata.Author);
}),
CreateInfo()
}
}
} }
} }
}, },