From 1c02394a0d1d8fbb74dce600a3cf13466086b6cd Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Thu, 5 Jun 2025 09:34:14 +0200 Subject: [PATCH 1/2] Make the captcha bigger --- web_src/css/form.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web_src/css/form.css b/web_src/css/form.css index 3a53b6d8f2..bc0aafc893 100644 --- a/web_src/css/form.css +++ b/web_src/css/form.css @@ -626,3 +626,7 @@ input:-webkit-autofill:active, width: 100% !important; } } + +.captcha-img { + width: min(30em, 100%); +} \ No newline at end of file From 8c51098959370ffce1ae2a8b1f99a8ceff36e7d6 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Thu, 5 Jun 2025 09:34:31 +0200 Subject: [PATCH 2/2] Make the captcha look --- templates/user/auth/captcha.tmpl | 2 +- web_src/css/markup/dark.css | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/user/auth/captcha.tmpl b/templates/user/auth/captcha.tmpl index b2deb5a2c9..906786e4c8 100644 --- a/templates/user/auth/captcha.tmpl +++ b/templates/user/auth/captcha.tmpl @@ -1,7 +1,7 @@ {{if .EnableCaptcha}}{{if eq .CaptchaType "image"}}
- {{ctx.Locale.Tr + {{ctx.Locale.Tr
diff --git a/web_src/css/markup/dark.css b/web_src/css/markup/dark.css index 700a48518e..e17f9fba67 100644 --- a/web_src/css/markup/dark.css +++ b/web_src/css/markup/dark.css @@ -11,3 +11,13 @@ .markup [href$="#dark-mode-only"] { display: unset; } + +/* + The reason we're doing this here, is because dark templates always use this file, and there's no other way to detect dark theme. + Third party templates may not, but this isn't that big, since you can't change the theme logged out. +*/ + +.captcha-img { + filter: invert(); + /* optionally contrast filter? */ +} \ No newline at end of file