1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 20:13:22 +08:00

add bottom margin for paragraph

This commit is contained in:
Gagah Pangeran Rosfatiputra 2021-05-23 18:11:54 +07:00
parent cd211de729
commit 4068881096
No known key found for this signature in database
GPG Key ID: 25F6F17FD29031E2

View File

@ -76,6 +76,9 @@ namespace osu.Game.Overlays.Wiki
public override MarkdownTextFlowContainer CreateTextFlow() => base.CreateTextFlow().With(f => f.TextAnchor = Anchor.TopCentre);
protected override MarkdownParagraph CreateParagraph(ParagraphBlock paragraphBlock, int level)
=> base.CreateParagraph(paragraphBlock, level).With(p => p.Margin = new MarginPadding { Bottom = 10 });
protected override MarkdownHeading CreateHeading(HeadingBlock headingBlock) => new WikiPanelHeading(headingBlock)
{
IsFullWidth = IsFullWidth,