Skip to content

Commit

Permalink
Add margin between quick action label and description
Browse files Browse the repository at this point in the history
Add a small margin between the label and the description, to make sure there is some spacing if both labels had the maximum length.
  • Loading branch information
Robyt3 committed Sep 20, 2024
1 parent f7e37d1 commit 1ac612d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/editor/prompt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1ac612d

Please sign in to comment.