mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 21:17:46 +08: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.
|
||||
|
||||
using osu.Framework.Allocation;
|
||||
@ -179,8 +179,9 @@ namespace osu.Game.Overlays.Rankings
|
||||
{
|
||||
public SpotlightsDropdownHeader()
|
||||
{
|
||||
Height = 48;
|
||||
AutoSizeAxes = Axes.Y;
|
||||
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 };
|
||||
Margin = Icon.Margin = new MarginPadding(0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user