mirror of
https://github.com/osukey/osukey.git
synced 2025-06-10 13:58:01 +09:00
Use Y-axis autosizing in SpotlightsDropdownHeader
This commit is contained in:
parent
06642dc7ff
commit
56f76580fd
@ -1,4 +1,4 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
@ -179,8 +179,9 @@ namespace osu.Game.Overlays.Rankings
|
|||||||
{
|
{
|
||||||
public SpotlightsDropdownHeader()
|
public SpotlightsDropdownHeader()
|
||||||
{
|
{
|
||||||
Height = 48;
|
AutoSizeAxes = Axes.Y;
|
||||||
Text.Font = OsuFont.GetFont(size: 15);
|
Text.Font = OsuFont.GetFont(size: 15);
|
||||||
|
Text.Padding = new MarginPadding { Vertical = 1.5f }; // osu-web line-height difference compensation
|
||||||
Foreground.Padding = new MarginPadding { Horizontal = 10, Vertical = 15 };
|
Foreground.Padding = new MarginPadding { Horizontal = 10, Vertical = 15 };
|
||||||
Margin = Icon.Margin = new MarginPadding(0);
|
Margin = Icon.Margin = new MarginPadding(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user