From 352acd484c75acd9257db77782ce95b7c9e2bc16 Mon Sep 17 00:00:00 2001 From: rockstardev <5191402+rockstardev@users.noreply.github.com> Date: Wed, 28 Feb 2024 06:36:08 -0600 Subject: [PATCH] Shortening destination in receipt --- .../Views/UIInvoice/InvoiceReceiptPrint.cshtml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/Views/UIInvoice/InvoiceReceiptPrint.cshtml b/BTCPayServer/Views/UIInvoice/InvoiceReceiptPrint.cshtml index 4f8ecf38a..0f96ed65b 100644 --- a/BTCPayServer/Views/UIInvoice/InvoiceReceiptPrint.cshtml +++ b/BTCPayServer/Views/UIInvoice/InvoiceReceiptPrint.cshtml @@ -174,7 +174,19 @@ { Destination - @payment.Destination + + @if (payment.Destination.Length > 69) + { + + @payment.Destination.Substring(0, 30) + ... + @payment.Destination.Substring(payment.Destination.Length-30, 30) + + } else + { + @payment.Destination + } + } @if (!string.IsNullOrEmpty(payment.PaymentProof))