Wrap beatmap listing filter names too

While we're here fixing...

Addresses
https://github.com/ppy/osu/discussions/15452#discussioncomment-2734237.
This commit is contained in:
Bartłomiej Dach 2024-03-11 14:58:28 +01:00
parent db1c59475b
commit e5e7c8f268
No known key found for this signature in database
1 changed files with 4 additions and 3 deletions

View File

@ -6,10 +6,10 @@
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.UserInterface; using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osuTK; using osuTK;
using osu.Framework.Extensions.EnumExtensions; using osu.Framework.Extensions.EnumExtensions;
using osu.Framework.Localisation; using osu.Framework.Localisation;
using osu.Game.Graphics.Containers;
namespace osu.Game.Overlays.BeatmapListing namespace osu.Game.Overlays.BeatmapListing
{ {
@ -45,9 +45,10 @@ public BeatmapSearchFilterRow(LocalisableString header)
{ {
new[] new[]
{ {
new OsuSpriteText new OsuTextFlowContainer(t => t.Font = OsuFont.GetFont(size: 13))
{ {
Font = OsuFont.GetFont(size: 13), RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Text = header Text = header
}, },
filter = CreateFilter() filter = CreateFilter()