From 8fa7062843f00f142bb4b2e2e3b0c97b68a9119f Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Thu, 19 Sep 2024 14:37:43 +0200 Subject: [PATCH 1/4] UI: Additional improvements to the User Invitation flow Closes #6224. --- .../TruncateCenter/TruncateCenter.cs | 4 +- BTCPayServer/Views/Shared/ShowQR.cshtml | 23 ++-- BTCPayServer/Views/UIServer/ListUsers.cshtml | 112 ++++++++++-------- 3 files changed, 79 insertions(+), 60 deletions(-) diff --git a/BTCPayServer/Components/TruncateCenter/TruncateCenter.cs b/BTCPayServer/Components/TruncateCenter/TruncateCenter.cs index 934676690a..ce35bb9954 100644 --- a/BTCPayServer/Components/TruncateCenter/TruncateCenter.cs +++ b/BTCPayServer/Components/TruncateCenter/TruncateCenter.cs @@ -34,10 +34,8 @@ public IViewComponentResult Invoke(string text, string link = null, string class }; if (!vm.IsVue) { - vm.Start = vm.IsTruncated ? text[..padding] : text; + vm.Start = vm.IsTruncated && !vm.Elastic ? "{text[..padding]}…" : text; vm.End = vm.IsTruncated ? text[^padding..] : string.Empty; - if (!vm.Elastic && vm.IsTruncated) - vm.Start = $"{vm.Start}…"; } return View(vm); } diff --git a/BTCPayServer/Views/Shared/ShowQR.cshtml b/BTCPayServer/Views/Shared/ShowQR.cshtml index 4702adbba5..6829ac1850 100644 --- a/BTCPayServer/Views/Shared/ShowQR.cshtml +++ b/BTCPayServer/Views/Shared/ShowQR.cshtml @@ -8,11 +8,19 @@ -