Merge pull request #13996 from Joehuu/fix-settings-footer-ruleset-overflow

Fix ruleset icons overflowing from settings footer
This commit is contained in:
Dean Herbert 2021-07-24 11:41:07 +09:00 committed by GitHub
commit 47c9c9ab60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -24,7 +24,7 @@ private void load(OsuGameBase game, OsuColour colours, RulesetStore rulesets)
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
Direction = FillDirection.Vertical;
Padding = new MarginPadding { Top = 20, Bottom = 30 };
Padding = new MarginPadding { Top = 20, Bottom = 30, Horizontal = SettingsPanel.CONTENT_MARGINS };
var modes = new List<Drawable>();
@ -32,6 +32,8 @@ private void load(OsuGameBase game, OsuColour colours, RulesetStore rulesets)
{
var icon = new ConstrainedIconContainer
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Icon = ruleset.CreateInstance().CreateIcon(),
Colour = Color4.Gray,
Size = new Vector2(20),
@ -47,7 +49,8 @@ private void load(OsuGameBase game, OsuColour colours, RulesetStore rulesets)
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Direction = FillDirection.Full,
AutoSizeAxes = Axes.Both,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Children = modes,
Spacing = new Vector2(5),
Padding = new MarginPadding { Bottom = 10 },