Fix missing interpolation marker

This commit is contained in:
Dennis Reimann 2024-10-04 15:18:06 +02:00
parent 2e114d7c29
commit 206d222455
No known key found for this signature in database
GPG key ID: 5009E1797F03F8D0

View file

@ -34,7 +34,7 @@ public class TruncateCenter : ViewComponent
};
if (!vm.IsVue)
{
vm.Start = vm.IsTruncated && !vm.Elastic ? "{text[..padding]}…" : text;
vm.Start = vm.IsTruncated && !vm.Elastic ? $"{text[..padding]}…" : text;
vm.End = vm.IsTruncated ? text[^padding..] : string.Empty;
}
return View(vm);