Skip to content

Commit

Permalink
fix unwanted alert list marker for single error, issue #3583 (#3704)
Browse files Browse the repository at this point in the history
* fix unwanted alert list marker for single error, issue #3583  #3583

* Update ViewPullPayment.cshtml

Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
  • Loading branch information
MrPaz and NicolasDorier committed May 18, 2022
1 parent df5add0 commit 533ae0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion BTCPayServer/Views/UIPullPayment/ViewPullPayment.cshtml
Expand Up @@ -34,6 +34,9 @@
<link href="@Model.CustomCSSLink" rel="stylesheet" />
}
@Safe.Raw(Model.EmbeddedCSS)
<style>
.no-marker > ul { list-style-type: none; }
</style>
</head>
<body>
<div class="min-vh-100 d-flex flex-column">
Expand Down Expand Up @@ -78,8 +81,9 @@
<partial name="_StatusMessage" model="@(new ViewDataDictionary(ViewData){ { "Margin", "mb-4" } })" />
@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" : "")}" })
}

<div class="row">
<div class="col col-12 col-lg-6 mb-4">
<div class="bg-tile h-100 m-0 p-3 p-sm-5 rounded">
Expand Down
1 change: 0 additions & 1 deletion BTCPayServer/wwwroot/main/site.css
Expand Up @@ -417,4 +417,3 @@ svg.icon-note {
margin-right: 0;
}
}

0 comments on commit 533ae0e

Please sign in to comment.