1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

centering link inside panel

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-23 18:09:09 +07:00
parent 1e5f34567a
commit 512d6d2f7f
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -71,6 +71,8 @@ namespace osu.Game.Overlays.Wiki
DocumentMargin = new MarginPadding(0);
}
public override MarkdownTextFlowContainer CreateTextFlow() => base.CreateTextFlow().With(f => f.TextAnchor = Anchor.TopCentre);
protected override MarkdownHeading CreateHeading(HeadingBlock headingBlock) => new WikiPanelHeading(headingBlock)
{
IsFullWidth = IsFullWidth,