1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-11 02:57:18 +08:00

Fix carousel taking up too much space on new song select implementation

This commit is contained in:
Dean Herbert 2025-02-28 16:45:49 +09:00
parent 1e46dc6b0a
commit 51cb0bea1c
No known key found for this signature in database

View File

@ -39,18 +39,33 @@ namespace osu.Game.Screens.SelectV2
{
AddRangeInternal(new Drawable[]
{
new GridContainer // used for max width implementation
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.Both,
ColumnDimensions = new[]
{
new Dimension(),
new Dimension(GridSizeMode.Relative, 0.5f, maxSize: 750),
},
Content = new[]
{
new[]
{
Empty(),
new Container
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Bottom = ScreenFooter.HEIGHT },
Child = new BeatmapCarousel
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.Both,
Width = 0.6f,
RelativeSizeAxes = Axes.Both
},
},
}
}
},
modSelectOverlay,
});
}