summaryrefslogtreecommitdiffstats
path: root/templates/explore
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-09-21 17:54:26 +0200
committerGitHub <noreply@github.com>2023-09-21 17:54:26 +0200
commit1f026bcb7eecad0b98d65089bb7fe5986b337d7d (patch)
tree78e2db54778674a4f9f84b361bfa0ead2894f9ea /templates/explore
parentFix repo sub menu (#27169) (diff)
downloadforgejo-1f026bcb7eecad0b98d65089bb7fe5986b337d7d.tar.xz
forgejo-1f026bcb7eecad0b98d65089bb7fe5986b337d7d.zip
Fix dropdown icon position (#27175)
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
Diffstat (limited to 'templates/explore')
-rw-r--r--templates/explore/repo_search.tmpl2
-rw-r--r--templates/explore/search.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/explore/repo_search.tmpl b/templates/explore/repo_search.tmpl
index 0731368e85..e684d2a1c4 100644
--- a/templates/explore/repo_search.tmpl
+++ b/templates/explore/repo_search.tmpl
@@ -16,8 +16,8 @@
<div class="ui dropdown type jump item gt-mr-0">
<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 eq .SortType "newest"}}active {{end}}item" href="{{$.Link}}?tab={{$.TabName}}&sort=newest&q={{$.Keyword}}&language={{$.Language}}">{{.locale.Tr "repo.issues.filter_sort.latest"}}</a>
<a class="{{if eq .SortType "oldest"}}active {{end}}item" href="{{$.Link}}?tab={{$.TabName}}&sort=oldest&q={{$.Keyword}}&language={{$.Language}}">{{.locale.Tr "repo.issues.filter_sort.oldest"}}</a>
diff --git a/templates/explore/search.tmpl b/templates/explore/search.tmpl
index b0041ee3ce..1c35ee00fa 100644
--- a/templates/explore/search.tmpl
+++ b/templates/explore/search.tmpl
@@ -9,8 +9,8 @@
<div class="ui dropdown type jump item gt-mr-0">
<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 eq .SortType "newest"}}active {{end}}item" href="{{$.Link}}?sort=newest&q={{$.Keyword}}">{{.locale.Tr "repo.issues.filter_sort.latest"}}</a>
<a class="{{if eq .SortType "oldest"}}active {{end}}item" href="{{$.Link}}?sort=oldest&q={{$.Keyword}}">{{.locale.Tr "repo.issues.filter_sort.oldest"}}</a>