Skip to content

Commit a41b367

Browse files
committed
Improve alignment and layout in Login.cshtml
1 parent f2356e9 commit a41b367

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/DasBlog.Web.UI/Views/Account/Login.cshtml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<hr />
1515
<form asp-controller="Account" asp-action="Login" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal">
1616

17-
<div class="row gy-2 gx-3 align-items-md-start mb-3">
17+
<div class="row gy-2 gx-3 justify-content-md-center mb-3">
1818
<div class="col-sm-4">
1919
<div class="form-floating">
2020
@Html.TextBoxFor(m => @Model.Email, null, new { @class = "form-control", id = "EmailLogin" })
@@ -24,7 +24,7 @@
2424
</div>
2525
</div>
2626

27-
<div class="row gy-2 gx-3 align-items-md-start mb-3">
27+
<div class="row gy-2 gx-3 justify-content-md-center mb-3">
2828
<div class="col-sm-4">
2929
<div class="form-floating">
3030
@Html.TextBoxFor(m => @Model.Password, null, new { @class = "form-control", id = "PasswordLogin", Type="password" })
@@ -34,17 +34,17 @@
3434
</div>
3535
</div>
3636

37-
<div class="d-flex flex-wrap">
37+
<div class="d-flex flex-wrap justify-content-md-center">
3838
@Html.CheckBoxFor(m => @Model.RememberMe, new { @class = "form-check-input me-1" })
3939
@Html.LabelFor(m => @Model.RememberMe, null, new { @class = "form-check-label me-3" })
4040
</div>
4141

4242
<hr />
43-
<div class="form-group">
44-
<div class="col-md-offset-2 col-md-10">
43+
<div class="d-flex flex-wrap justify-content-md-center">
44+
4545
<button id="LoginButton" type="submit" class="btn btn-primary me-2">Log in</button>
4646
<a href="~/" class="btn btn-secondary">Cancel</a>
47-
</div>
47+
4848
</div>
4949
</form>
5050

0 commit comments

Comments
 (0)