mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Add search button and fix unset timeline beginning
This commit is contained in:
parent
19659de410
commit
70c42dd05a
6 changed files with 11 additions and 7 deletions
|
|
@ -60,7 +60,8 @@ proc renderSearchPanel*(query: Query): VNode =
|
|||
let action = if user.len > 0: &"/{user}/search" else: "/search"
|
||||
buildHtml(form(`method`="get", action=action, class="search-field")):
|
||||
hiddenField("kind", "custom")
|
||||
genInput("text", "", query.text, "Enter search...", class="pref-inline")
|
||||
genInput("text", "", query.text, "Enter search...",
|
||||
class="pref-inline", autofocus=true)
|
||||
button(`type`="submit"): icon "search"
|
||||
input(id="search-panel-toggle", `type`="checkbox")
|
||||
label(`for`="search-panel-toggle"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue