From ecc9a343598dd954e5cb55adaffe572594224938 Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Mon, 8 Feb 2021 17:54:40 +0100 Subject: [PATCH] Checkout: Fix scan/copy tab sizes with varying content Fixes #2264. --- .../Bitcoin/BitcoinLikeMethodCheckout.cshtml | 173 +++++++++--------- BTCPayServer/wwwroot/checkout/css/default.css | 17 +- 2 files changed, 95 insertions(+), 95 deletions(-) diff --git a/BTCPayServer/Views/Shared/Bitcoin/BitcoinLikeMethodCheckout.cshtml b/BTCPayServer/Views/Shared/Bitcoin/BitcoinLikeMethodCheckout.cshtml index 1974104a0..41a899968 100644 --- a/BTCPayServer/Views/Shared/Bitcoin/BitcoinLikeMethodCheckout.cshtml +++ b/BTCPayServer/Views/Shared/Bitcoin/BitcoinLikeMethodCheckout.cshtml @@ -3,98 +3,99 @@ diff --git a/BTCPayServer/wwwroot/checkout/css/default.css b/BTCPayServer/wwwroot/checkout/css/default.css index 9d239777a..f8e3c7d10 100644 --- a/BTCPayServer/wwwroot/checkout/css/default.css +++ b/BTCPayServer/wwwroot/checkout/css/default.css @@ -9226,13 +9226,15 @@ strong { font-size: 13px; } +.bp-views { + position: relative; + overflow: hidden; +} + .bp-view { - padding-top: 1em; - padding-bottom: 2em; position: absolute; - padding-left: 30px; - padding-right: 30px; width: 100%; + padding: 1em 30px; } .bp-view#paid { @@ -9263,6 +9265,7 @@ strong { .bp-view.active { z-index: 9999; + position: relative; } .bp-view.paid-full { @@ -9279,12 +9282,8 @@ strong { box-sizing: border-box; font-size: smaller; color: #515664; - position: absolute; - top: calc(100% - 40px); - left: 50%; - padding: 0 16px; + padding: 0 1em 1em; text-align: center; - transform: translateX(-50%); width: 100%; }