Skip to content

Commit 14a56da

Browse files
committed
Enhance comment settings layout and functionality
Updated `_Admin_Comments.cshtml` to improve layout and add new configuration options: - Added `mb-3` class for spacing in relevant `<div>` elements. - Introduced `TextBoxFor` input for `DaysCommentsAllowed` with label and validation. - Added `CheckBoxFor` input for `AllowMarkdownInComments` with label. These changes enhance usability and provide better control over comment settings.
1 parent a41b367 commit 14a56da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/DasBlog.Web.UI/Views/Shared/_Admin_Comments.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</div>
2222
</div>
2323

24-
<div class="col-md-4">
24+
<div class="col-md-4 mb-3">
2525
<div class="form-floating">
2626
@Html.TextBoxFor(m => @Model.SiteConfig.DaysCommentsAllowed, null, new { @class = "form-control", id = "daysCommentsAllowed" })
2727
@Html.LabelFor(m => @Model.SiteConfig.DaysCommentsAllowed, null, new { @class = "form-label", @for = "daysCommentsAllowed" })
@@ -46,7 +46,7 @@
4646
</div>
4747
</div>
4848

49-
<div class="col-md-4">
49+
<div class="col-md-4 mb-3">
5050
<div class="form-check">
5151
@Html.CheckBoxFor(m => @Model.SiteConfig.AllowMarkdownInComments, new { @class = "form-check-input" })
5252
@Html.LabelFor(m => @Model.SiteConfig.AllowMarkdownInComments, null, new { @class = "col-check-label" })

0 commit comments

Comments
 (0)