From aa9faf825074110d31fc2c75a31880c98a48feb2 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 20 Sep 2024 17:27:19 +0200 Subject: [PATCH] Set manual `tabindex`es on login page (#31689) Fixes https://github.com/go-gitea/gitea/issues/31686. A more elborate manual tabindex numbering could be done, but I think it's not really worth the extra effort and such stuff could easily break during refactors. Includes another small tweak to un-stretch the`` element so it's only as large as it needs to be and this change also made the margin unneeded. --- templates/user/auth/signin_inner.tmpl | 12 +++++++----- web_src/css/form.css | 1 - 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/templates/user/auth/signin_inner.tmpl b/templates/user/auth/signin_inner.tmpl index b0a52d2c64..ec61e56f4d 100644 --- a/templates/user/auth/signin_inner.tmpl +++ b/templates/user/auth/signin_inner.tmpl @@ -14,20 +14,22 @@ {{.CsrfTokenHtml}}
- +
{{if or (not .DisablePassword) .LinkAccountMode}}
- {{ctx.Locale.Tr "auth.forgot_password"}} - +
+ {{ctx.Locale.Tr "auth.forgot_password"}} +
+
{{end}} {{if not .LinkAccountMode}}
- +
{{end}} @@ -35,7 +37,7 @@ {{template "user/auth/captcha" .}}
-