1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Fix TestSceneSideOverlays test failure

This commit is contained in:
Bartłomiej Dach 2023-12-26 20:09:34 +01:00
parent 5d0b524794
commit c107bfcd31
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View File

@ -10,13 +10,13 @@ namespace osu.Game.Overlays.Settings
{
public partial class SettingsSidebar : ExpandingContainer
{
public const float DEFAULT_WIDTH = 70;
public const float CONTRACTED_WIDTH = 70;
public const int EXPANDED_WIDTH = 170;
protected override bool ExpandOnHover => false;
public SettingsSidebar()
: base(DEFAULT_WIDTH, EXPANDED_WIDTH)
: base(CONTRACTED_WIDTH, EXPANDED_WIDTH)
{
Expanded.Value = true;
}

View File

@ -66,7 +66,7 @@ namespace osu.Game.Overlays.Settings
{
textIconContent = new Container
{
Width = SettingsSidebar.DEFAULT_WIDTH,
Width = SettingsSidebar.CONTRACTED_WIDTH,
RelativeSizeAxes = Axes.Y,
Colour = OsuColour.Gray(0.6f),
Children = new Drawable[]

View File

@ -33,7 +33,7 @@ namespace osu.Game.Overlays
public const float TRANSITION_LENGTH = 600;
private const float sidebar_width = SettingsSidebar.DEFAULT_WIDTH;
private const float sidebar_width = SettingsSidebar.EXPANDED_WIDTH;
/// <summary>
/// The width of the settings panel content, excluding the sidebar.