mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 11:59:48 +00:00
Shorten the chat titles, when necessary
This commit is contained in:
parent
eae1944695
commit
09e1f8715f
@ -8,6 +8,8 @@ public class TreeItemData : ITreeItem
|
||||
|
||||
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 TreeItemType Type { get; init; }
|
||||
|
@ -21,7 +21,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
@treeItem.Text
|
||||
@treeItem.ShortenedText
|
||||
}
|
||||
</MudText>
|
||||
<div style="justify-self: end;">
|
||||
|
Loading…
Reference in New Issue
Block a user