mirror of
https://github.com/osukey/osukey.git
synced 2025-06-23 20:27:58 +09:00
Merge pull request #13996 from Joehuu/fix-settings-footer-ruleset-overflow
Fix ruleset icons overflowing from settings footer
This commit is contained in:
commit
47c9c9ab60
@ -24,7 +24,7 @@ namespace osu.Game.Overlays.Settings
|
|||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
Direction = FillDirection.Vertical;
|
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>();
|
var modes = new List<Drawable>();
|
||||||
|
|
||||||
@ -32,6 +32,8 @@ namespace osu.Game.Overlays.Settings
|
|||||||
{
|
{
|
||||||
var icon = new ConstrainedIconContainer
|
var icon = new ConstrainedIconContainer
|
||||||
{
|
{
|
||||||
|
Anchor = Anchor.TopCentre,
|
||||||
|
Origin = Anchor.TopCentre,
|
||||||
Icon = ruleset.CreateInstance().CreateIcon(),
|
Icon = ruleset.CreateInstance().CreateIcon(),
|
||||||
Colour = Color4.Gray,
|
Colour = Color4.Gray,
|
||||||
Size = new Vector2(20),
|
Size = new Vector2(20),
|
||||||
@ -47,7 +49,8 @@ namespace osu.Game.Overlays.Settings
|
|||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
Direction = FillDirection.Full,
|
Direction = FillDirection.Full,
|
||||||
AutoSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
Children = modes,
|
Children = modes,
|
||||||
Spacing = new Vector2(5),
|
Spacing = new Vector2(5),
|
||||||
Padding = new MarginPadding { Bottom = 10 },
|
Padding = new MarginPadding { Bottom = 10 },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user