Fix wiki main page blurb overflowing at higher ui scale

This commit is contained in:
Joseph Madamba 2021-09-16 17:32:23 -07:00
parent 414735b8d0
commit 2983d54682
1 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@
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 @@ private Container createBlurb(HtmlDocument html)
{
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,
}
};
}