diff --git a/osu.Game/Graphics/Containers/Markdown/OsuMarkdownContainer.cs b/osu.Game/Graphics/Containers/Markdown/OsuMarkdownContainer.cs index c7e9f267bd..0638767414 100644 --- a/osu.Game/Graphics/Containers/Markdown/OsuMarkdownContainer.cs +++ b/osu.Game/Graphics/Containers/Markdown/OsuMarkdownContainer.cs @@ -6,6 +6,7 @@ using Markdig.Extensions.AutoIdentifiers; using Markdig.Extensions.Tables; using Markdig.Extensions.Yaml; using Markdig.Syntax; +using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers.Markdown; @@ -44,6 +45,11 @@ namespace osu.Game.Graphics.Containers.Markdown protected override MarkdownTable CreateTable(Table table) => new OsuMarkdownTable(table); + protected override MarkdownList CreateList(ListBlock listBlock) => new MarkdownList + { + Padding = new MarginPadding(0) + }; + protected virtual OsuMarkdownListItem CreateListItem(ListItemBlock listItemBlock) => new OsuMarkdownListItem(); protected override MarkdownPipeline CreateBuilder() diff --git a/osu.Game/Graphics/Containers/Markdown/OsuMarkdownListItem.cs b/osu.Game/Graphics/Containers/Markdown/OsuMarkdownListItem.cs index 7b92a2210d..732817a1d5 100644 --- a/osu.Game/Graphics/Containers/Markdown/OsuMarkdownListItem.cs +++ b/osu.Game/Graphics/Containers/Markdown/OsuMarkdownListItem.cs @@ -9,6 +9,8 @@ namespace osu.Game.Graphics.Containers.Markdown { public class OsuMarkdownListItem : FillFlowContainer { + private const float default_left_padding = 20; + public OsuMarkdownListItem() { AutoSizeAxes = Axes.Y; @@ -16,6 +18,7 @@ namespace osu.Game.Graphics.Containers.Markdown Direction = FillDirection.Vertical; Spacing = new Vector2(10, 10); + Padding = new MarginPadding { Left = default_left_padding }; } } }