diff options
author | 赵智超 | 2020-04-12 20:24:15 +0800 |
---|---|---|
committer | GitHub | 2020-04-12 20:24:15 +0800 |
commit | b5fd55de7361fdab71bda8c498c428ca3b5832f2 (patch) | |
tree | f109d124c102a8f982cd00a45cebd5f3ac8c046f | |
parent | e11b3a10760aceb318a6c39042f30854d62d23ad (diff) |
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>
-rw-r--r-- | templates/status/404.tmpl | 2 | ||||
-rw-r--r-- | templates/status/500.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl index f947602bf..47f8ebf35 100644 --- a/templates/status/404.tmpl +++ b/templates/status/404.tmpl @@ -1,7 +1,7 @@ {{template "base/head" .}} {{if .IsRepo}}<div class="repository">{{template "repo/header" .}}</div>{{end}} <div class="ui container center"> - <p style="margin-top: 100px"><img src="{{StaticUrlPrefix}}/img/404.png" alt="404"/></p> + <p style="margin-top: 100px"><img class="ui centered image" src="{{StaticUrlPrefix}}/img/404.png" alt="404"/></p> <div class="ui divider"></div> <br> {{if .ShowFooterVersion}}<p>Application Version: {{AppVer}}</p>{{end}} diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl index 191e5929d..1dc7061d4 100644 --- a/templates/status/500.tmpl +++ b/templates/status/500.tmpl @@ -1,6 +1,6 @@ {{template "base/head" .}} <div class="ui container center"> - <p style="margin-top: 100px"><img src="{{StaticUrlPrefix}}/img/500.png" alt="500"/></p> + <p style="margin-top: 100px"><img class="ui centered image" src="{{StaticUrlPrefix}}/img/500.png" alt="500"/></p> <div class="ui divider"></div> <br> {{if .ErrorMsg}}<p>An error has occurred :</p> |