1
0
mirror of https://github.com/zedeus/nitter synced 2024-11-26 03:29:14 +01:00

Autofocus search

Fixes #25
This commit is contained in:
Zed 2019-08-13 20:21:35 +02:00
parent 8141222c93
commit c42b2893ff

View File

@ -52,7 +52,7 @@ proc renderSearch*(): VNode =
buildHtml(tdiv(class="panel")):
tdiv(class="search-panel"):
form(`method`="post", action="search"):
input(`type`="text", name="query", placeholder="Enter usernames...")
input(`type`="text", name="query", autofocus="", placeholder="Enter usernames...")
button(`type`="submit"): text "🔎"
proc renderError*(error: string): VNode =