mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 08:03:12 +08:00
add bottom margin for paragraph
This commit is contained in:
parent
cd211de729
commit
4068881096
@ -76,6 +76,9 @@ namespace osu.Game.Overlays.Wiki
|
|||||||
|
|
||||||
public override MarkdownTextFlowContainer CreateTextFlow() => base.CreateTextFlow().With(f => f.TextAnchor = Anchor.TopCentre);
|
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)
|
protected override MarkdownHeading CreateHeading(HeadingBlock headingBlock) => new WikiPanelHeading(headingBlock)
|
||||||
{
|
{
|
||||||
IsFullWidth = IsFullWidth,
|
IsFullWidth = IsFullWidth,
|
||||||
|
Loading…
Reference in New Issue
Block a user