1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 13:22:55 +08:00

Merge pull request #14771 from Joehuu/fix-overflowing-wiki-blurb

Fix wiki main page blurb overflowing at higher ui scale
This commit is contained in:
Dean Herbert 2021-09-17 10:45:51 +09:00 committed by GitHub
commit 5453ea0ce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ using osu.Framework.Graphics.Containers;
using HtmlAgilityPack;
using osu.Framework.Allocation;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.Containers;
namespace osu.Game.Overlays.Wiki
{
@ -56,12 +56,12 @@ namespace osu.Game.Overlays.Wiki
{
Vertical = 30,
},
Child = new OsuSpriteText
Child = new OsuTextFlowContainer(t => t.Font = OsuFont.GetFont(Typeface.Inter, size: 12, weight: FontWeight.Light))
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Text = blurbNode.InnerText,
Font = OsuFont.GetFont(Typeface.Inter, size: 12, weight: FontWeight.Light),
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
TextAnchor = Anchor.TopCentre,
}
};
}