diff options
| author | Myzel394 <50424412+Myzel394@users.noreply.github.com> | 2021-04-30 15:12:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-30 15:12:36 +0200 |
| commit | c106de02e957650bf6e29c0c47b39eeeff7c2fa8 (patch) | |
| tree | 28948a81147ae7788aca2c4e2d6577f2b36b5c10 | |
| parent | 8bc91ced4fb22437dd8198536b331d76f82dd351 (diff) | |
| download | invidious-c106de02e957650bf6e29c0c47b39eeeff7c2fa8.tar.gz invidious-c106de02e957650bf6e29c0c47b39eeeff7c2fa8.tar.bz2 invidious-c106de02e957650bf6e29c0c47b39eeeff7c2fa8.zip | |
Added autofocus attribute to search input
Since the main action of this form is to search something, the input should automatically be focused.
| -rw-r--r-- | src/invidious/views/search_homepage.ecr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/views/search_homepage.ecr b/src/invidious/views/search_homepage.ecr index b36500e9..8927c3f1 100644 --- a/src/invidious/views/search_homepage.ecr +++ b/src/invidious/views/search_homepage.ecr @@ -16,7 +16,7 @@ <div class="pure-u-1 pure-u-md-12-24 searchbar"> <form class="pure-form" action="/search" method="get"> <fieldset> - <input type="search" style="width:100%" name="q" placeholder="<%= translate(locale, "search") %>" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>"> + <input autofocus type="search" style="width:100%" name="q" placeholder="<%= translate(locale, "search") %>" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>"> </fieldset> </form> </div> |
