From 3b1f851f8a05d75f5488b6c3b28563814114ef91 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Tue, 29 Oct 2019 20:59:28 +0100 Subject: [PATCH] Improve pay button display These changes should provide a more solid CSS approach to display the pay button in different scenarios. Also it fixes minor functionality issues like preselecting the merchant-chosen currency in the custom amount and slider dropdown. --- BTCPayServer/Views/Stores/PayButton.cshtml | 36 +++--- BTCPayServer/wwwroot/paybutton/paybutton.js | 135 ++++++++------------ 2 files changed, 72 insertions(+), 99 deletions(-) diff --git a/BTCPayServer/Views/Stores/PayButton.cshtml b/BTCPayServer/Views/Stores/PayButton.cshtml index 57709da2d..3442f393b 100644 --- a/BTCPayServer/Views/Stores/PayButton.cshtml +++ b/BTCPayServer/Views/Stores/PayButton.cshtml @@ -105,10 +105,10 @@
- - {{ errors.first('fitButtoninline') }} + + {{ errors.first('fitButtonInline') }}
@@ -171,22 +171,29 @@

This parameter allows you to specify additional query string paramters that should be appended to the checkout page once the invoice is created. For example, lang=da-DK would load the checkout page in Danish by default. - +

+ +

Preview

+
+
+
+
+
+ +
+

Generated code

-
+
-
-
-
@@ -224,17 +231,6 @@ }); } - - - - -