From 42a8160768c6705e8655efdeb205dfdbb95f2f7d Mon Sep 17 00:00:00 2001 From: d11n Date: Wed, 21 Feb 2024 13:34:47 +0100 Subject: [PATCH] UI: Make store selector list scrollable if necessary (#5760) Fixes #5754. --- BTCPayServer/wwwroot/main/layout.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/wwwroot/main/layout.css b/BTCPayServer/wwwroot/main/layout.css index e465ced30..6146a9937 100644 --- a/BTCPayServer/wwwroot/main/layout.css +++ b/BTCPayServer/wwwroot/main/layout.css @@ -219,8 +219,10 @@ #StoreSelectorMenu { min-width: 100%; - max-height: calc(100vh - var(--header-height)); - overflow-y: scroll; + overflow-y: auto; + /* gradually try to set better but less supported values and units */ + max-height: calc(100vh - var(--header-height) - var(--btcpay-space-xxl)); + max-height: calc(100dvh - var(--header-height)); } /* Logo */