Skip to content

Commit b5fd55d

Browse files
fix 404 and 500 image size in small size screen (#11043) (#11049)
do it by define Semantic UI image class Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
1 parent e11b3a1 commit b5fd55d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/status/404.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{template "base/head" .}}
22
{{if .IsRepo}}<div class="repository">{{template "repo/header" .}}</div>{{end}}
33
<div class="ui container center">
4-
<p style="margin-top: 100px"><img src="{{StaticUrlPrefix}}/img/404.png" alt="404"/></p>
4+
<p style="margin-top: 100px"><img class="ui centered image" src="{{StaticUrlPrefix}}/img/404.png" alt="404"/></p>
55
<div class="ui divider"></div>
66
<br>
77
{{if .ShowFooterVersion}}<p>Application Version: {{AppVer}}</p>{{end}}

templates/status/500.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{template "base/head" .}}
22
<div class="ui container center">
3-
<p style="margin-top: 100px"><img src="{{StaticUrlPrefix}}/img/500.png" alt="500"/></p>
3+
<p style="margin-top: 100px"><img class="ui centered image" src="{{StaticUrlPrefix}}/img/500.png" alt="500"/></p>
44
<div class="ui divider"></div>
55
<br>
66
{{if .ErrorMsg}}<p>An error has occurred :</p>

0 commit comments

Comments
 (0)