From 26576d323fd80c0dfe5988f6ad3da2e8c0e81fd5 Mon Sep 17 00:00:00 2001 From: kageru Date: Thu, 4 Jan 2024 14:17:20 +0100 Subject: [PATCH] autofocus search bar --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index ec8f417..b0da5ea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -126,7 +126,7 @@ async fn search(q: Option, web::Form>>) -> AnyRe let data = match q { Some(q) => compute_results(q)?, None => TargetPage::Data(PageData { - title: "YGO card search".to_owned(), + title: NAME.to_owned(), description: "Enter a query above to search".to_owned(), query: None, body: "

Welcome to my cheap Scryfall clone for Yugioh.

\ @@ -189,7 +189,7 @@ fn add_searchbox(res: &mut String, query: &Option) -> std::fmt::Result { res, r#"
- +
"#, match &query {