diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-03-31 01:53:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 13:53:51 -0400 |
commit | c20eb72285efd256b4725015202071fe67056071 (patch) | |
tree | 750334a9a81f0503ccf9d6239686cb4136168086 /templates | |
parent | 06d9d9e40794db9cbb00cdc893dea86d694389ad (diff) | |
download | gitea-c20eb72285efd256b4725015202071fe67056071.tar.gz gitea-c20eb72285efd256b4725015202071fe67056071.zip |
Fix dropdown direction behavior (#23806)
Close #23803
More details in the comment.
![image](https://user-images.githubusercontent.com/2114189/228728786-7ec942b0-1f21-432d-93eb-575c77508b14.png)
![image](https://user-images.githubusercontent.com/2114189/228728825-62afb85e-7bfb-4702-a8bc-6c2160429978.png)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/list.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index c8d186bbfb..80d1bec579 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -177,12 +177,12 @@ {{end}} <!-- Sort --> - <div class="ui dropdown type jump item"> + <div class="ui dropdown downward type jump item"> <span class="text"> {{.locale.Tr "repo.issues.filter_sort"}} {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> - <div class="menu"> + <div class="left 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> |