From 533ae0ea89b2b36d5524962a677dbc5fe7ec62a6 Mon Sep 17 00:00:00 2001 From: MrPaz <35268901+MrPaz@users.noreply.github.com> Date: Wed, 18 May 2022 07:38:10 -0500 Subject: [PATCH] fix unwanted alert list marker for single error, issue #3583 (#3704) * fix unwanted alert list marker for single error, issue #3583 https://github.com/btcpayserver/btcpayserver/issues/3583 * Update ViewPullPayment.cshtml Co-authored-by: Nicolas Dorier --- BTCPayServer/Views/UIPullPayment/ViewPullPayment.cshtml | 6 +++++- BTCPayServer/wwwroot/main/site.css | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/Views/UIPullPayment/ViewPullPayment.cshtml b/BTCPayServer/Views/UIPullPayment/ViewPullPayment.cshtml index 5d852d1558..dfa5884b02 100644 --- a/BTCPayServer/Views/UIPullPayment/ViewPullPayment.cshtml +++ b/BTCPayServer/Views/UIPullPayment/ViewPullPayment.cshtml @@ -34,6 +34,9 @@ } @Safe.Raw(Model.EmbeddedCSS) +
@@ -78,8 +81,9 @@ @if (!ViewContext.ModelState.IsValid) { - @Html.ValidationSummary(string.Empty, new { @class = "alert alert-danger mb-4 pb-0 text-center" }) + @Html.ValidationSummary(string.Empty, new { @class = $"alert alert-danger mb-4 pb-0 {(ViewContext.ModelState.ErrorCount.Equals(1) ? "no-marker" : "")}" }) } +
diff --git a/BTCPayServer/wwwroot/main/site.css b/BTCPayServer/wwwroot/main/site.css index 5d6787d981..5afbccd27a 100644 --- a/BTCPayServer/wwwroot/main/site.css +++ b/BTCPayServer/wwwroot/main/site.css @@ -417,4 +417,3 @@ svg.icon-note { margin-right: 0; } } -