From 6ff659fb99755ed471748a084e00a19c97373946 Mon Sep 17 00:00:00 2001 From: dstrukt Date: Sun, 21 Nov 2021 20:56:43 -0800 Subject: [PATCH] Simple Payment Request and Pull Payment Views Improvements (#3127) * adds border radius to payment request view * adds border radius to pull payments view * spacings + font weights * paddings + font weights * updates text color * updates font weights + text colors * padding consistency * switches padding to empty state * update * another padding fix * Add "no details provided" when empty description Co-authored-by: Samuel Adams --- .../PaymentRequest/ViewPaymentRequest.cshtml | 44 ++++++++++--------- .../Views/PullPayment/ViewPullPayment.cshtml | 24 +++++----- 2 files changed, 36 insertions(+), 32 deletions(-) diff --git a/BTCPayServer/Views/PaymentRequest/ViewPaymentRequest.cshtml b/BTCPayServer/Views/PaymentRequest/ViewPaymentRequest.cshtml index e1bd53313..54e921de7 100644 --- a/BTCPayServer/Views/PaymentRequest/ViewPaymentRequest.cshtml +++ b/BTCPayServer/Views/PaymentRequest/ViewPaymentRequest.cshtml @@ -1,4 +1,4 @@ -@using BTCPayServer.Services.Invoices +@using BTCPayServer.Services.Invoices @using BTCPayServer.Client.Models @using BTCPayServer.Abstractions.Contracts @model BTCPayServer.Models.PaymentRequestViewModels.ViewPaymentRequestViewModel @@ -83,10 +83,10 @@   @Model.LastUpdated.ToString("g") @Model.LastUpdated.ToString("g") - - @@ -203,34 +203,38 @@
-
+

Invoice Summary

-
- @if (!string.IsNullOrEmpty(Model.Description) && Model.Description != "
") - { + @if (!string.IsNullOrEmpty(Model.Description) && Model.Description != "
") + { +
@Safe.Raw(Model.Description) - } -
+
+ } + else + { +

No details provided.

+ }
-
+

Payment Details

-
@Model.AmountDueFormatted
-
Amount due
+
@Model.AmountDueFormatted
+
Amount due
-
@Model.AmountCollectedFormatted
-
Amount paid
+
@Model.AmountCollectedFormatted
+
Amount paid
-
@Model.AmountFormatted
-
Total requested
+
@Model.AmountFormatted
+
Total requested
@@ -238,13 +242,13 @@
-
-

Payment History

+
+

Payment History