mirror of
https://github.com/ddnet/ddnet.git
synced 2024-10-18 14:58:19 +00:00
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:
parent
30021839c7
commit
9597241a4a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue