summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com>2021-05-13 10:32:38 +0200
committerGitHub <noreply@github.com>2021-05-13 10:32:38 +0200
commit3cf08dc45163268cee48d045e347eaf7c7be92a6 (patch)
tree6914a34ef3483572c1ccef741977aca10466a6db
parent76c9cf62ff6738c6563786a663cd788a0636887f (diff)
parentc106de02e957650bf6e29c0c47b39eeeff7c2fa8 (diff)
downloadinvidious-3cf08dc45163268cee48d045e347eaf7c7be92a6.tar.gz
invidious-3cf08dc45163268cee48d045e347eaf7c7be92a6.tar.bz2
invidious-3cf08dc45163268cee48d045e347eaf7c7be92a6.zip
Merge pull request #2052 from Myzel394/patch-1
Add autofocus attribute to search input
-rw-r--r--src/invidious/views/search_homepage.ecr2
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>