mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Fix text flow wrapping incorrectly in multiplayer usages
This commit is contained in:
@ -181,8 +181,11 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
{
|
{
|
||||||
beatmapText = new LinkFlowContainer(fontParameters)
|
beatmapText = new LinkFlowContainer(fontParameters)
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Y,
|
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
|
// workaround to ensure only the first line of text shows, emulating truncation (but without ellipsis at the end).
|
||||||
|
// TODO: remove when text/link flow can support truncation with ellipsis natively.
|
||||||
|
Height = OsuFont.DEFAULT_FONT_SIZE,
|
||||||
|
Masking = true
|
||||||
},
|
},
|
||||||
new FillFlowContainer
|
new FillFlowContainer
|
||||||
{
|
{
|
||||||
|
@ -353,7 +353,10 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
|||||||
})
|
})
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
AutoSizeAxes = Axes.Y
|
// workaround to ensure only the first line of text shows, emulating truncation (but without ellipsis at the end).
|
||||||
|
// TODO: remove when text/link flow can support truncation with ellipsis natively.
|
||||||
|
Height = 16,
|
||||||
|
Masking = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -385,7 +388,6 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
|||||||
creationParameters: s =>
|
creationParameters: s =>
|
||||||
{
|
{
|
||||||
s.Truncate = true;
|
s.Truncate = true;
|
||||||
s.RelativeSizeAxes = Axes.X;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user