Shorten the chat titles, when necessary

This commit is contained in:
Thorsten Sommer 2024-07-13 10:04:52 +02:00
parent eae1944695
commit 09e1f8715f
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@ public class TreeItemData : ITreeItem
public string Text { get; init; } = string.Empty; public string Text { get; init; } = string.Empty;
public string ShortenedText => Text.Length > 30 ? this.Text[..30] + "..." : this.Text;
public string Icon { get; init; } = string.Empty; public string Icon { get; init; } = string.Empty;
public TreeItemType Type { get; init; } public TreeItemType Type { get; init; }

View File

@ -21,7 +21,7 @@
} }
else else
{ {
@treeItem.Text @treeItem.ShortenedText
} }
</MudText> </MudText>
<div style="justify-self: end;"> <div style="justify-self: end;">