diff --git a/osu.Game/Overlays/SearchableList/SearchableListFilterControl.cs b/osu.Game/Overlays/SearchableList/SearchableListFilterControl.cs index 1c3cb63995..f679e0186a 100644 --- a/osu.Game/Overlays/SearchableList/SearchableListFilterControl.cs +++ b/osu.Game/Overlays/SearchableList/SearchableListFilterControl.cs @@ -29,10 +29,9 @@ namespace osu.Game.Overlays.SearchableList protected virtual Drawable CreateSupplementaryControls() => null; /// - /// Add padding to internal components of the control. - /// This does not affect the background and the tab strip. + /// The amount of padding added to content (does not affect background or tab control strip). /// - protected virtual float InternalPadding => 0; + protected virtual float ContentHorizontalPadding => SearchableListOverlay.WIDTH_PADDING; protected SearchableListFilterControl() { @@ -71,7 +70,7 @@ namespace osu.Game.Overlays.SearchableList Padding = new MarginPadding { Top = padding, - Horizontal = SearchableListOverlay.WIDTH_PADDING + InternalPadding + Horizontal = ContentHorizontalPadding }, Children = new Drawable[] { diff --git a/osu.Game/Screens/Multi/Lounge/Components/FilterControl.cs b/osu.Game/Screens/Multi/Lounge/Components/FilterControl.cs index 64b9959f57..a027125bb5 100644 --- a/osu.Game/Screens/Multi/Lounge/Components/FilterControl.cs +++ b/osu.Game/Screens/Multi/Lounge/Components/FilterControl.cs @@ -13,7 +13,7 @@ namespace osu.Game.Screens.Multi.Lounge.Components protected override Color4 BackgroundColour => OsuColour.FromHex(@"362e42"); protected override PrimaryFilter DefaultTab => PrimaryFilter.Open; - protected override float InternalPadding => OsuScreen.HORIZONTAL_OVERFLOW_PADDING; + protected override float ContentHorizontalPadding => base.ContentHorizontalPadding + OsuScreen.HORIZONTAL_OVERFLOW_PADDING; public FilterControl() {