fix(login): move remember password below submit
This commit is contained in:
@@ -392,6 +392,10 @@ export function Login() {
|
||||
</div>
|
||||
<Input id="login-password" type="password" autoComplete="current-password" value={password} onChange={(event) => setPassword(event.target.value)} />
|
||||
</div>
|
||||
<Button type="submit" className="w-full" disabled={!passwordReady}>
|
||||
{busy && <Loader2 className="mr-2 h-4 w-4 animate-spin" />}
|
||||
登录
|
||||
</Button>
|
||||
<label
|
||||
className="flex w-fit items-center gap-2 text-sm text-muted-foreground"
|
||||
title={rememberPasswordAvailable ? undefined : '当前环境无法使用系统安全存储'}
|
||||
@@ -404,10 +408,6 @@ export function Login() {
|
||||
/>
|
||||
<span>记住密码</span>
|
||||
</label>
|
||||
<Button type="submit" className="w-full" disabled={!passwordReady}>
|
||||
{busy && <Loader2 className="mr-2 h-4 w-4 animate-spin" />}
|
||||
登录
|
||||
</Button>
|
||||
</form>
|
||||
) : (
|
||||
<form className="space-y-4" onSubmit={handleMobileSubmit}>
|
||||
|
||||
Reference in New Issue
Block a user