reduce spacing in forms

This commit is contained in:
Milo Schwartz
2024-12-22 17:09:22 -05:00
parent f224bfa4ee
commit 11cbafb92a
16 changed files with 94 additions and 80 deletions

View File

@@ -211,7 +211,7 @@ export default function ResetPasswordForm({
</CardDescription>
</CardHeader>
<CardContent>
<div className="space-y-8">
<div className="space-y-4">
{state === "request" && (
<Form {...requestForm}>
<form

View File

@@ -2,6 +2,7 @@ import { verifySession } from "@app/lib/auth/verifySession";
import { redirect } from "next/navigation";
import { cache } from "react";
import ResetPasswordForm from "./ResetPasswordForm";
import Link from "next/link";
export const dynamic = "force-dynamic";
@@ -27,6 +28,19 @@ export default async function Page(props: {
tokenParam={searchParams.token}
emailParam={searchParams.email}
/>
<p className="text-center text-muted-foreground mt-4">
<Link
href={
!searchParams.redirect
? `/auth/signup`
: `/auth/signup?redirect=${searchParams.redirect}`
}
className="underline"
>
Go to login
</Link>
</p>
</>
);
}

View File

@@ -114,7 +114,7 @@ export default function SignupForm({ redirect }: SignupFormProps) {
<Form {...form}>
<form
onSubmit={form.handleSubmit(onSubmit)}
className="space-y-8"
className="space-y-4"
>
<FormField
control={form.control}

View File

@@ -138,7 +138,7 @@ export default function VerifyEmailForm({
<Form {...form}>
<form
onSubmit={form.handleSubmit(onSubmit)}
className="space-y-8"
className="space-y-4"
>
<FormField
control={form.control}