mirror of
https://github.com/osukey/osukey.git
synced 2025-06-20 02:38:04 +09:00
Fix wiki main page blurb overflowing at higher ui scale
This commit is contained in:
parent
414735b8d0
commit
2983d54682
@ -9,7 +9,7 @@ using osu.Framework.Graphics.Containers;
|
|||||||
using HtmlAgilityPack;
|
using HtmlAgilityPack;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Containers;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Wiki
|
namespace osu.Game.Overlays.Wiki
|
||||||
{
|
{
|
||||||
@ -56,12 +56,12 @@ namespace osu.Game.Overlays.Wiki
|
|||||||
{
|
{
|
||||||
Vertical = 30,
|
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,
|
Text = blurbNode.InnerText,
|
||||||
Font = OsuFont.GetFont(Typeface.Inter, size: 12, weight: FontWeight.Light),
|
TextAnchor = Anchor.TopCentre,
|
||||||
Anchor = Anchor.TopCentre,
|
|
||||||
Origin = Anchor.TopCentre,
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user