diff options
author | silverwind <me@silverwind.io> | 2023-06-22 12:27:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 10:27:35 +0000 |
commit | af094fbb6c066ba2e02b812dc3e5875d46e0db42 (patch) | |
tree | f3d45e5337ee8bf8e94730295338f4e42dd614ed /web_src/js/components/DashboardRepoList.vue | |
parent | ff90c87c878b03e7beabac5f19396e0db2c25a1e (diff) | |
download | gitea-af094fbb6c066ba2e02b812dc3e5875d46e0db42.tar.gz gitea-af094fbb6c066ba2e02b812dc3e5875d46e0db42.zip |
Introduce shared template for search inputs (#25338)
- Set
[type=search](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/search)
- Disable spellcheck
- Set maxLength 255 that I found in `templates/repo/issue/search.tmpl`
- Remove unnecessary `max-width`, it does nothing
---------
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'web_src/js/components/DashboardRepoList.vue')
-rw-r--r-- | web_src/js/components/DashboardRepoList.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/components/DashboardRepoList.vue b/web_src/js/components/DashboardRepoList.vue index b47d872927..6d27cb7508 100644 --- a/web_src/js/components/DashboardRepoList.vue +++ b/web_src/js/components/DashboardRepoList.vue @@ -16,7 +16,7 @@ </h4> <div class="ui attached segment repos-search"> <div class="ui fluid right action left icon input" :class="{loading: isLoading}"> - <input @input="changeReposFilter(reposFilter)" v-model="searchQuery" ref="search" @keydown="reposFilterKeyControl" :placeholder="textSearchRepos"> + <input type="search" spellcheck="false" maxlength="255" @input="changeReposFilter(reposFilter)" v-model="searchQuery" ref="search" @keydown="reposFilterKeyControl" :placeholder="textSearchRepos"> <i class="icon gt-df gt-ac gt-jc"><svg-icon name="octicon-search" :size="16"/></i> <div class="ui dropdown icon button" :title="textFilter"> <svg-icon name="octicon-filter" :size="16"/> |