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