From 52a6d9ff438a6acb33dc7a33afd5162e5ce0fb3b Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Fri, 19 Jul 2019 10:06:36 +0200 Subject: [PATCH] Better margin on the chat box. --- Content.Client/Chat/ChatBox.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Content.Client/Chat/ChatBox.cs b/Content.Client/Chat/ChatBox.cs index 0536accde8..cd8f40650f 100644 --- a/Content.Client/Chat/ChatBox.cs +++ b/Content.Client/Chat/ChatBox.cs @@ -74,8 +74,14 @@ namespace Content.Client.Chat outerVBox.AddChild(panelContainer); outerVBox.AddChild(hBox); - contents = new OutputPanel {SizeFlagsVertical = SizeFlags.FillExpand}; - vBox.AddChild(contents); + var contentMargin = new MarginContainer + { + MarginLeftOverride = 4, MarginRightOverride = 4, + SizeFlagsVertical = SizeFlags.FillExpand + }; + contents = new OutputPanel(); + contentMargin.AddChild(contents); + vBox.AddChild(contentMargin); Input = new LineEdit(); Input.OnKeyDown += InputKeyDown;