Fixing endless ... in small window size
This commit is contained in:
@@ -1,13 +1,3 @@
|
||||
namespace FileTime.App.Core.Models;
|
||||
|
||||
public class ItemNamePart
|
||||
{
|
||||
public string Text { get; set; }
|
||||
public bool IsSpecial { get; set; }
|
||||
|
||||
public ItemNamePart(string text, bool isSpecial = false)
|
||||
{
|
||||
Text = text;
|
||||
IsSpecial = isSpecial;
|
||||
}
|
||||
}
|
||||
public record ItemNamePart(string Text, bool IsSpecial = false);
|
||||
@@ -107,7 +107,7 @@ public class NamePartShrinkerConverter : IMultiValueConverter
|
||||
else
|
||||
{
|
||||
var last = newNameParts.Last();
|
||||
last.Text += "...";
|
||||
newNameParts[^1] = new ItemNamePart(last.Text + "...");
|
||||
}
|
||||
return newNameParts;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user