From 45c95442b63e257c2ec6d8c7ea1e9fe9295023fd Mon Sep 17 00:00:00 2001 From: npeter83 Date: Sun, 9 Aug 2026 06:15:21 +0200 Subject: [PATCH] =?UTF-8?q?refactor(input):=20R10=20S3=20review=20?= =?UTF-8?q?=E2=80=94=20fold=20Welcome's=20local=20inputCls=20into=20the=20?= =?UTF-8?q?shared=20recipe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Welcome kept the last local `const inputCls` (rounded-xl, py-2.5) after S3b consolidated the other three, leaving its auth fields the sole inputs off the unified rounded-lg recipe. Import the shared inputCls and drop the local const — now every input is truly one recipe. (Auth fields go rounded-xl→rounded-lg, py-2.5→py-2 to match.) --- frontend/src/components/Welcome.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/components/Welcome.tsx b/frontend/src/components/Welcome.tsx index 372d10f9..0671e38d 100644 --- a/frontend/src/components/Welcome.tsx +++ b/frontend/src/components/Welcome.tsx @@ -22,6 +22,7 @@ import { api } from "../lib/api"; import { HttpError } from "../lib/api"; import { setLanguage, type LangCode } from "../i18n"; import LanguageSwitcher from "./LanguageSwitcher"; +import { inputCls } from "./ui/form"; const EMAIL_RE = /^[^@\s]+@[^@\s]+\.[^@\s]+$/; const PASSWORD_MIN = 10; @@ -430,8 +431,6 @@ function AuthCard() { } } - const inputCls = - "w-full bg-surface border border-border rounded-xl px-3 py-2.5 text-sm focus:outline-hidden focus:ring-2 focus:ring-accent/40"; const titleKey = TITLE_KEY[mode]; return (