Skip to content

Commit

Permalink
fix unwanted alert list marker for single error, issue #3583 #3583
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPaz authored and NicolasDorier committed May 18, 2022
1 parent 273bc78 commit 3ba1e70
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 @@ -40,6 +40,9 @@
<link href="@Model.CustomCSSLink" rel="stylesheet" />
}
@Safe.Raw(Model.EmbeddedCSS)
<style>
.no-marker > ul { list-style-type: none; }
</style>
<noscript>
<style>
.hide-when-js, [v-cloak] { display: block !important; }
Expand Down Expand Up @@ -90,8 +93,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 3ba1e70

Please sign in to comment.