mirror of
https://github.com/ppy/osu.git
synced 2025-01-29 06:43:02 +08:00
Fix ruleset icons overflowing from settings footer
This commit is contained in:
parent
6621da6752
commit
dce47917fd
@ -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…
Reference in New Issue
Block a user