diff options
author | Giteabot <teabot@gitea.io> | 2023-09-22 00:24:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-21 16:24:07 +0000 |
commit | 2e49a4da4891b1eda86e2748ecbc03bf04c9f209 (patch) | |
tree | 7b10942ba1f9402855d810fc3c34b937adaf0528 /templates/user | |
parent | 8d9e2d07f3f84a86265fdbe0ab7fcf63cc34ddbd (diff) | |
download | gitea-2e49a4da4891b1eda86e2748ecbc03bf04c9f209.tar.gz gitea-2e49a4da4891b1eda86e2748ecbc03bf04c9f209.zip |
Fix dropdown icon position (#27175) (#27177)
Backport #27175 by @wxiaoguang
According to https://fomantic-ui.com/modules/dropdown.html and our
"devtest" page, many dropdown elements has incorrect "icon" position.
This PR fixes all of them. Fix #27173
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/dashboard/milestones.tmpl | 2 | ||||
-rw-r--r-- | templates/user/dashboard/navbar.tmpl | 2 | ||||
-rw-r--r-- | templates/user/notification/notification_subscriptions.tmpl | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/templates/user/dashboard/milestones.tmpl b/templates/user/dashboard/milestones.tmpl index d9921ab59b..d18ed37910 100644 --- a/templates/user/dashboard/milestones.tmpl +++ b/templates/user/dashboard/milestones.tmpl @@ -59,8 +59,8 @@ <div class="list-header-sort ui dropdown type jump item"> <span class="text"> {{.locale.Tr "repo.issues.filter_sort"}} - {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> + {{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="menu"> <a class="{{if or (eq .SortType "closestduedate") (not .SortType)}}active {{end}}item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=closestduedate&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.closest_due_date"}}</a> <a class="{{if eq .SortType "furthestduedate"}}active {{end}}item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=furthestduedate&state={{$.State}}&q={{$.Keyword}}">{{.locale.Tr "repo.milestones.filter_sort.furthest_due_date"}}</a> diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl index ee9e7e60ad..f9c6a29513 100644 --- a/templates/user/dashboard/navbar.tmpl +++ b/templates/user/dashboard/navbar.tmpl @@ -53,8 +53,8 @@ {{else}} {{.locale.Tr "org.teams"}} {{end}} - {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> + {{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="context user overflow menu"> <div class="ui header"> {{.locale.Tr "home.filter_by_team_repositories"}} diff --git a/templates/user/notification/notification_subscriptions.tmpl b/templates/user/notification/notification_subscriptions.tmpl index ec93935874..6d3f9759f8 100644 --- a/templates/user/notification/notification_subscriptions.tmpl +++ b/templates/user/notification/notification_subscriptions.tmpl @@ -33,8 +33,8 @@ <div class="ui dropdown type jump item"> <span class="text"> {{.locale.Tr "repo.issues.filter_type"}} - {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> + {{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="menu"> <a class="{{if or (eq .IssueType "all") (not .IssueType)}}active {{end}}item" href="{{$.Link}}?sort={{$.SortType}}&state={{$.State}}&issueType=all&labels={{$.Labels}}">{{.locale.Tr "all"}}</a> <a class="{{if eq .IssueType "issues"}}active {{end}}item" href="{{$.Link}}?sort={{$.SortType}}&state={{$.State}}&issueType=issues&labels={{$.Labels}}">{{.locale.Tr "issues"}}</a> @@ -46,8 +46,8 @@ <div class="ui dropdown type jump item"> <span class="text"> {{.locale.Tr "repo.issues.filter_sort"}} - {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> + {{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="menu"> <a class="{{if or (eq .SortType "latest") (not .SortType)}}active {{end}}item" href="{{$.Link}}?sort=latest&state={{$.State}}&issueType={{$.IssueType}}&labels={{$.Labels}}">{{.locale.Tr "repo.issues.filter_sort.latest"}}</a> <a class="{{if eq .SortType "oldest"}}active {{end}}item" href="{{$.Link}}?sort=oldest&state={{$.State}}&issueType={{$.IssueType}}&labels={{$.Labels}}">{{.locale.Tr "repo.issues.filter_sort.oldest"}}</a> |