Skip to content

Commit 83f30c1

Browse files
committed
fix margin space
1 parent 983c19d commit 83f30c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/status/404.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="status-page-error">
66
<div class="status-page-error-title">404 Not Found</div>
77
<div class="tw-text-center">
8-
<div>{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404"}}{{end}}</div>
8+
<div class="tw-my-4">{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404"}}{{end}}</div>
99
{{if .NotFoundGoBackURL}}
1010
<a class="tw-block tw-my-4" href="{{.NotFoundGoBackURL}}">{{ctx.Locale.Tr "go_back"}}</a>
1111
{{end}}

web_src/css/base.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ img.ui.avatar,
483483

484484
.status-page-error-title {
485485
font-size: 48px;
486-
margin-bottom: 24px;
486+
margin-bottom: 14px; /* some elements below may use tw-my-4 or tw-my-8, so use 14px as a minimal margin */
487487
line-height: initial;
488488
text-align: center;
489489
font-weight: var(--font-weight-bold);

0 commit comments

Comments
 (0)