From e21a8df0f3bd4ec6215214630f4a447ab5310cdd Mon Sep 17 00:00:00 2001 From: Andrew Camilleri Date: Thu, 21 Mar 2024 09:30:34 +0100 Subject: [PATCH] smaller printed receipts (#5856) --- .../Views/UIInvoice/InvoiceReceiptPrint.cshtml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/Views/UIInvoice/InvoiceReceiptPrint.cshtml b/BTCPayServer/Views/UIInvoice/InvoiceReceiptPrint.cshtml index 4f8ecf38a..3d1c4a6ab 100644 --- a/BTCPayServer/Views/UIInvoice/InvoiceReceiptPrint.cshtml +++ b/BTCPayServer/Views/UIInvoice/InvoiceReceiptPrint.cshtml @@ -174,7 +174,20 @@ { Destination - @payment.Destination + + @if (payment.Destination.Length > 69) + { + + @payment.Destination[..30] + ... + @payment.Destination.Substring(payment.Destination.Length - 30, 30) + + } + else + { + @payment.Destination + } + } @if (!string.IsNullOrEmpty(payment.PaymentProof))