Skip to content

Commit

Permalink
fix: stopping message name from overflowing
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Aug 21, 2024
1 parent 21693d1 commit 3a151c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Assets/Mirage.Profiler/Editor/Table/LabelRow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ protected static void SetLabelStyle(ColumnInfo column, Label label)
style.borderBottomColor = Color.white * .4f;
style.borderBottomWidth = 1;
style.borderRightWidth = 2;

style.overflow = Overflow.Hidden;
style.textOverflow = TextOverflow.Ellipsis;
}

public override Label GetLabel(ColumnInfo column)
Expand Down
1 change: 1 addition & 0 deletions Assets/Mirage.Profiler/Editor/Table/Row.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public void SetText(ColumnInfo column, string text)
{
var label = GetLabel(column);
label.text = text;
label.tooltip = text;
}
}
}

0 comments on commit 3a151c1

Please sign in to comment.