Message padding improvements

This commit is contained in:
Andrei Zavatski 2019-10-09 10:34:17 +03:00
parent faef4d932d
commit 4462d454e8

View File

@ -16,6 +16,7 @@ namespace osu.Game.Overlays.Comments
public class CommentsContainer : CompositeDrawable public class CommentsContainer : CompositeDrawable
{ {
private const float separator_height = 1.5f; private const float separator_height = 1.5f;
private const int padding = 40;
private readonly CommentableType type; private readonly CommentableType type;
private readonly long id; private readonly long id;
@ -92,7 +93,13 @@ namespace osu.Game.Overlays.Comments
if (!c.IsDeleted && c.IsTopLevel) if (!c.IsDeleted && c.IsTopLevel)
content.AddRange(new Drawable[] content.AddRange(new Drawable[]
{ {
new DrawableComment(c), new Container
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Right = padding },
Child = new DrawableComment(c)
},
new Container new Container
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,