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.
This commit is contained in:
Robert Müller 2024-09-20 10:44:42 +02:00
parent 30021839c7
commit 9597241a4a

View file

@ -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;