From eb71996e6ac34fb630cfa07cf430d46e82ca53dd Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 22 Nov 2025 22:58:17 +0100 Subject: [PATCH] align signon username/password boxes --- interface/src/SignIn.tsx | 21 +++++++++++-------- .../components/inputs/ValidatedTextField.tsx | 4 +++- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/interface/src/SignIn.tsx b/interface/src/SignIn.tsx index fc6d73c6a..e783a34e2 100644 --- a/interface/src/SignIn.tsx +++ b/interface/src/SignIn.tsx @@ -102,23 +102,27 @@ const SignIn = memo(() => { width: '100%' })} > - {PROJECT_NAME} - + + {PROJECT_NAME} + - - + { fieldErrors={fieldErrors || {}} disabled={processing} sx={{ - width: 240 + width: '32ch' }} name="password" label={LL.PASSWORD()} value={signInRequest.password} onChange={updateLoginRequestValue} onKeyDown={submitOnEnter} - variant="outlined" /> diff --git a/interface/src/components/inputs/ValidatedTextField.tsx b/interface/src/components/inputs/ValidatedTextField.tsx index c12ee6d3e..1660af29d 100644 --- a/interface/src/components/inputs/ValidatedTextField.tsx +++ b/interface/src/components/inputs/ValidatedTextField.tsx @@ -15,6 +15,7 @@ export type ValidatedTextFieldProps = ValidatedFieldProps & TextFieldProps; const ValidatedTextField: FC = ({ fieldErrors, + sx, ...rest }) => { const errors = fieldErrors?.[rest.name]; @@ -28,7 +29,8 @@ const ValidatedTextField: FC = ({ sx={{ '& .MuiInputBase-input.Mui-disabled': { WebkitTextFillColor: 'grey' - } + }, + ...(sx || {}) }} {...(rest.disabled && { slotProps: {