fix(login): move remember password below submit

This commit is contained in:
2026-08-21 00:46:57 +08:00
parent eedd20d061
commit 4d512b15f6
4 changed files with 69 additions and 5 deletions

View File

@@ -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}>