From 1ac612d944dce97449fbd0f7f27e393d9e2f1cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Fri, 20 Sep 2024 10:44:42 +0200 Subject: [PATCH] Add margin between quick action label and description Add a small margin between the label and the description, to make sure there is some spacing if both labels had the maximum length. --- src/game/editor/prompt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/editor/prompt.cpp b/src/game/editor/prompt.cpp index 7e7a1a1eabe..8dc12ef5339 100644 --- a/src/game/editor/prompt.cpp +++ b/src/game/editor/prompt.cpp @@ -136,9 +136,9 @@ void CPrompt::OnRender(CUIRect _) CUIRect LabelColumn, DescColumn; float Margin = 5.0f; - Item.m_Rect.VSplitLeft(Margin, nullptr, &LabelColumn); + Item.m_Rect.VMargin(Margin, &LabelColumn); LabelColumn.VSplitLeft(LabelWidth, &LabelColumn, &DescColumn); - DescColumn.VSplitRight(Margin, &DescColumn, nullptr); + DescColumn.VSplitLeft(Margin, nullptr, &DescColumn); SLabelProperties Props; Props.m_MaxWidth = LabelColumn.w;