summaryrefslogtreecommitdiffstats
path: root/templates/explore
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-11-20 09:57:46 +0100
committerGitHub <noreply@github.com>2023-11-20 09:57:46 +0100
commiteae555ff2395cc1ad178f3a977d83742ae73e1d9 (patch)
tree8a1f612a453b2f0aec55204b954aafed67038761 /templates/explore
parentAdd missing `packages.cleanup.success` (#28129) (diff)
downloadforgejo-eae555ff2395cc1ad178f3a977d83742ae73e1d9.tar.xz
forgejo-eae555ff2395cc1ad178f3a977d83742ae73e1d9.zip
Remove autofocus in search box (#28033)
Mentioned here: https://github.com/go-gitea/gitea/pull/27982#issuecomment-1807923026
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 71c088ef24..eaf2e7a090 100644
--- a/templates/explore/repo_search.tmpl
+++ b/templates/explore/repo_search.tmpl
@@ -3,7 +3,7 @@
<input type="hidden" name="sort" value="{{$.SortType}}">
<input type="hidden" name="language" value="{{$.Language}}">
<div class="ui fluid action input">
- {{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" (not .ProfileReadme)}}
+ {{template "shared/searchinput" dict "Value" .Keyword}}
{{if .PageIsExploreRepositories}}
<input type="hidden" name="only_show_relevant" value="{{.OnlyShowRelevant}}">
{{else if .TabName}}
diff --git a/templates/explore/search.tmpl b/templates/explore/search.tmpl
index 63b842cbbf..74b80436dc 100644
--- a/templates/explore/search.tmpl
+++ b/templates/explore/search.tmpl
@@ -1,7 +1,7 @@
<div class="ui secondary filter menu gt-ac gt-mx-0">
<form class="ui form ignore-dirty gt-f1">
<div class="ui fluid action input">
- {{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true}}
+ {{template "shared/searchinput" dict "Value" .Keyword}}
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
</div>
</form>