From e3cb717087160185e7679057ec93f5c59bab5cbe Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 14 Jul 2024 22:04:45 +0200 Subject: [PATCH] Autofocus jump input --- src/frontend/templates/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/templates/mod.rs b/src/frontend/templates/mod.rs index c83ef4f..a29f208 100644 --- a/src/frontend/templates/mod.rs +++ b/src/frontend/templates/mod.rs @@ -39,7 +39,7 @@ fn navbar(config: &TemplateConfig) -> Markup { } form .d-flex.flex-fill role="search" action="/jump" { - input .form-control.me-2 type="search" name="id" placeholder="Jump to ID"; + input .form-control.me-2 type="search" name="id" placeholder="Jump to ID" autofocus; } @if config.user.is_some() {