feat: 调整注册和重置密码页面的布局,优化组件宽度;更新中文翻译以支持“获取”按钮文本

This commit is contained in:
2025-09-24 12:21:11 +08:00
parent 9b0ae6f4bb
commit 54f236a26a
5 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import { RegisterForm } from '@/components/auth/register/register-form'
function PageContent() { function PageContent() {
return ( return (
<div className="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10"> <div className="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
<div className="flex w-full max-w-md flex-col gap-6"> <div className="flex w-full max-w-sm flex-col gap-6">
<AuthHeader /> <AuthHeader />
<RegisterForm /> <RegisterForm />
</div> </div>

View File

@ -3,7 +3,7 @@ import { ResetPasswordForm } from "@/components/auth/reset-password/reset-passwo
export default function Page() { export default function Page() {
return ( return (
<div className="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10"> <div className="bg-muted flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
<div className="flex w-full max-w-md flex-col gap-6"> <div className="flex w-full max-w-sm flex-col gap-6">
<AuthHeader /> <AuthHeader />
<ResetPasswordForm /> <ResetPasswordForm />
</div> </div>

View File

@ -180,7 +180,7 @@ export function RegisterForm({
onChange={value => setVerifyCode(value)} onChange={value => setVerifyCode(value)}
/> />
<Button onClick={handleSendVerifyCode} disabled={!email || coolDown > 0 || sendingVerifyCode} variant="outline" className="border-2" type="button"> <Button onClick={handleSendVerifyCode} disabled={!email || coolDown > 0 || sendingVerifyCode} variant="outline" className="border-2" type="button">
{commonT("send_verify_code")}{coolDown > 0 ? `(${coolDown})` : ""} {commonT("obtain")}{coolDown > 0 ? `(${coolDown})` : ""}
</Button> </Button>
</div> </div>
</div> </div>

View File

@ -95,7 +95,7 @@ export function ResetPasswordForm({
className="border-2" className="border-2"
type="button" type="button"
onClick={handleSendVerifyCode}> onClick={handleSendVerifyCode}>
{t("send_verify_code")}{coolDown > 0 ? `(${coolDown})` : ""} {commonT("obtain")}{coolDown > 0 ? `(${coolDown})` : ""}
</Button> </Button>
</div> </div>

View File

@ -62,6 +62,7 @@
"daysAgo": "天前", "daysAgo": "天前",
"hoursAgo": "小时前", "hoursAgo": "小时前",
"minutesAgo": "分钟前", "minutesAgo": "分钟前",
"obtain": "获取",
"password": "密码", "password": "密码",
"secondsAgo": "秒前", "secondsAgo": "秒前",
"send_verify_code": "发送验证码", "send_verify_code": "发送验证码",