[WEB-1385] chore: auth screen and space app improvement (#4529)
* chore: instance sign in page alginment * chore: strength indicator color updated * chore: confirm password input improvement * chore: space issue sidebar comment section validation added
This commit is contained in:
parent
c58e241159
commit
f77761b4f9
9 changed files with 43 additions and 19 deletions
|
|
@ -128,6 +128,10 @@ export const InstanceSetupForm: FC = (props) => {
|
|||
[formData.confirm_password, formData.email, formData.first_name, formData.password, isSubmitting]
|
||||
);
|
||||
|
||||
const password = formData?.password ?? "";
|
||||
const confirmPassword = formData?.confirm_password ?? "";
|
||||
const renderPasswordMatchError = !isRetryPasswordInputFocused || confirmPassword.length >= password.length;
|
||||
|
||||
return (
|
||||
<div className="max-w-lg lg:max-w-md w-full">
|
||||
<div className="relative flex flex-col space-y-6">
|
||||
|
|
@ -308,7 +312,7 @@ export const InstanceSetupForm: FC = (props) => {
|
|||
</div>
|
||||
{!!formData.confirm_password &&
|
||||
formData.password !== formData.confirm_password &&
|
||||
!isRetryPasswordInputFocused && <span className="text-sm text-red-500">Passwords don{"'"}t match</span>}
|
||||
renderPasswordMatchError && <span className="text-sm text-red-500">Passwords don{"'"}t match</span>}
|
||||
</div>
|
||||
|
||||
<div className="relative flex items-center pt-2 gap-2">
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ export const InstanceSignInForm: FC = (props) => {
|
|||
);
|
||||
|
||||
return (
|
||||
<div className="relative w-full h-full overflow-hidden container mx-auto max-w-lg px-10 lg:max-w-md lg:px-5 py-10 flex flex-col justify-center items-center">
|
||||
<div className="flex-grow container mx-auto max-w-lg px-10 lg:max-w-md lg:px-5 py-10 lg:pt-28 transition-all">
|
||||
<div className="relative flex flex-col space-y-6">
|
||||
<div className="text-center space-y-1">
|
||||
<h3 className="flex gap-4 justify-center text-3xl font-bold text-onboarding-text-100">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue