summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-04-01 13:47:54 +0800
committerGitHub <noreply@github.com>2023-04-01 13:47:54 +0800
commite2165854a6c40a4ce95b81911d06e311217ba028 (patch)
tree12863a109564241bb7c0a23a3fe57ade4508f9a8
parent053df150fe056964771222569d4cb20dba19fd88 (diff)
downloadgitea-e2165854a6c40a4ce95b81911d06e311217ba028.tar.gz
gitea-e2165854a6c40a4ce95b81911d06e311217ba028.zip
Improve home page template, fix Sort dropdown menu flash (#23856)
Follow #23854 Major changes: 1. The old `<div class="ui"><div class="six wide column ..."> </div></div>` doesn't have affect any more * So clean them, and remove other unnecessary elements/styles. 2. Add padding for narrow view. Before ![image](https://user-images.githubusercontent.com/2114189/229262177-e8cf6c9b-b17b-482c-83fe-a84579e01e8e.png) After: ![image](https://user-images.githubusercontent.com/2114189/229262166-d46134b0-2117-4d5c-a469-a2115cbd4b6c.png)
-rw-r--r--templates/home.tmpl8
-rw-r--r--templates/repo/issue/list.tmpl2
2 files changed, 4 insertions, 6 deletions
diff --git a/templates/home.tmpl b/templates/home.tmpl
index 57f0709a9f..1f10f3c8d2 100644
--- a/templates/home.tmpl
+++ b/templates/home.tmpl
@@ -1,10 +1,8 @@
{{template "base/head" .}}
<div role="main" aria-label="{{if .IsSigned}}{{.locale.Tr "dashboard"}}{{else}}{{.locale.Tr "home"}}{{end}}" class="page-content home">
- <div class="ui middle very relaxed page gt-mb-5">
- <div class="sixteen wide center aligned centered column">
- <div>
- <img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.locale.Tr "logo"}}">
- </div>
+ <div class="gt-mb-5 gt-px-5">
+ <div class="center">
+ <img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{.locale.Tr "logo"}}">
<div class="hero">
<h1 class="ui icon header title">
{{AppName}}
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl
index 80d1bec579..cfc9a93048 100644
--- a/templates/repo/issue/list.tmpl
+++ b/templates/repo/issue/list.tmpl
@@ -182,7 +182,7 @@
{{.locale.Tr "repo.issues.filter_sort"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
</span>
- <div class="left menu">
+ <div class="menu">
<a class="{{if or (eq .SortType "latest") (not .SortType)}}active {{end}}item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort=latest&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_sort.latest"}}</a>
<a class="{{if eq .SortType "oldest"}}active {{end}}item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort=oldest&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_sort.oldest"}}</a>
<a class="{{if eq .SortType "recentupdate"}}active {{end}}item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort=recentupdate&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_sort.recentupdate"}}</a>