diff --git a/BTCPayServer/Views/Manage/AddApiKey.cshtml b/BTCPayServer/Views/Manage/AddApiKey.cshtml index 5ebc03a94..2a1838b9c 100644 --- a/BTCPayServer/Views/Manage/AddApiKey.cshtml +++ b/BTCPayServer/Views/Manage/AddApiKey.cshtml @@ -16,6 +16,14 @@ @section PageFootContent { + }

@ViewData["PageTitle"]

@@ -41,32 +49,41 @@ } else { - - @if (Policies.IsStorePolicy(Model.PermissionValues[i].Permission)) - { - - @if (Model.PermissionValues[i].StoreMode == ManageController.AddApiKeyViewModel.ApiKeyStoreMode.AllStores) +
+ + @if (Policies.IsStorePolicy(Model.PermissionValues[i].Permission)) { -
+ + @if (Model.PermissionValues[i].StoreMode == ManageController.AddApiKeyViewModel.ApiKeyStoreMode.AllStores) + {
- - - - - @Model.PermissionValues[i].Description + + +
+ +
@Model.PermissionValues[i].Description
+ @if (Model.Stores.Any()) + { + + } +
-
- } - else - { -
-
@Model.PermissionValues[i].Title
- @Model.PermissionValues[i].Description - + } + else + { +
+ @Model.PermissionValues[i].Title + @Model.PermissionValues[i].Permission +
+
@Model.PermissionValues[i].Description
+ @if (!Model.Stores.Any()) { -

+

You currently have no stores configured.

} @@ -75,12 +92,12 @@
@if (Model.PermissionValues[i].SpecificStores[index] == null) { - + } else { var store = Model.Stores.SingleOrDefault(data => data.Id == Model.PermissionValues[i].SpecificStores[index]); - + }
} -
+ } } - } - else - { -
+ else + {
- - - @Model.PermissionValues[i].Description -
-
- } + +
+ + @Model.PermissionValues[i].Description +
+
+ } + } } diff --git a/BTCPayServer/wwwroot/main/site.css b/BTCPayServer/wwwroot/main/site.css index 4a4a7efb8..7a2496d8d 100644 --- a/BTCPayServer/wwwroot/main/site.css +++ b/BTCPayServer/wwwroot/main/site.css @@ -1,4 +1,9 @@ -/* General and site-wide Bootstrap modifications */ +/* Set scroll padding so that anchors don't disappear underneath the fixed navbar */ +html { + scroll-padding-top: 80px; +} + +/* General and site-wide Bootstrap modifications */ .logo { height: 34px; }