1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-11 05:17:25 +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,17 +39,32 @@ namespace osu.Game.Screens.SelectV2
{ {
AddRangeInternal(new Drawable[] AddRangeInternal(new Drawable[]
{ {
new Container new GridContainer // used for max width implementation
{ {
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Bottom = ScreenFooter.HEIGHT }, ColumnDimensions = new[]
Child = new BeatmapCarousel
{ {
Anchor = Anchor.TopRight, new Dimension(),
Origin = Anchor.TopRight, new Dimension(GridSizeMode.Relative, 0.5f, maxSize: 750),
RelativeSizeAxes = Axes.Both,
Width = 0.6f,
}, },
Content = new[]
{
new[]
{
Empty(),
new Container
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Bottom = ScreenFooter.HEIGHT },
Child = new BeatmapCarousel
{
RelativeSizeAxes = Axes.Both
},
},
}
}
}, },
modSelectOverlay, modSelectOverlay,
}); });