Skip to content

Commit

Permalink
decrease chat list entry name max length from 16 to 14
Browse files Browse the repository at this point in the history
  • Loading branch information
angelofallars committed Jan 8, 2025
1 parent 22bcceb commit b24a210
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Content.Client.DeltaV.CartridgeLoader.Cartridges;
[GenerateTypedNameReferences]
public sealed partial class NanoChatEntry : BoxContainer
{
private const int MaxNameLength = 16;
private const int MaxNameLength = 14;
private const int MaxJobLength = 20;

public event Action<uint>? OnPressed;
Expand Down Expand Up @@ -46,5 +46,5 @@ public void SetRecipient(NanoChatRecipient recipient, uint number, bool isSelect
private static string Truncate(string text, int maxLength) =>
text.Length <= maxLength
? text
: text[..(maxLength - 4)] + "...";
: text[..(maxLength - 3)] + "...";
}

0 comments on commit b24a210

Please sign in to comment.