Skip to content

Commit 2d614d3

Browse files
mjunaidcaclaude
andcommitted
fix(forms): Reduce spacing between labels and input fields
Changed all form field spacing from space-y-3 to space-y-1.5 for tighter label-to-input proximity across: - Profile form (all fields) - Sign-up form (name, email, password, confirm password) - Sign-in form (email, password) Labels now appear directly above their inputs with minimal gap. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c990710 commit 2d614d3

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

auth-server/src/app/account/profile/ProfileForm.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default function ProfileForm({
6565
</div>
6666

6767
{/* Read-only Email */}
68-
<div className="space-y-3">
68+
<div className="space-y-1.5">
6969
<label className="block text-sm font-semibold text-slate-700">
7070
Email Address
7171
</label>
@@ -99,7 +99,7 @@ export default function ProfileForm({
9999
</div>
100100

101101
{/* Full Name */}
102-
<div className="space-y-3">
102+
<div className="space-y-1.5">
103103
<label className="block text-sm font-semibold text-slate-700">
104104
Full Name
105105
</label>
@@ -114,7 +114,7 @@ export default function ProfileForm({
114114

115115
{/* First & Last Name Grid */}
116116
<div className="grid grid-cols-1 sm:grid-cols-2 gap-5">
117-
<div className="space-y-3">
117+
<div className="space-y-1.5">
118118
<label className="block text-sm font-semibold text-slate-700">
119119
First Name
120120
</label>
@@ -126,7 +126,7 @@ export default function ProfileForm({
126126
className="w-full px-4 py-3.5 border-2 border-slate-200 rounded-xl focus:border-indigo-500 focus:ring-4 focus:ring-indigo-500/10 transition-all duration-200 bg-white hover:border-slate-300"
127127
/>
128128
</div>
129-
<div className="space-y-3">
129+
<div className="space-y-1.5">
130130
<label className="block text-sm font-semibold text-slate-700">
131131
Last Name
132132
</label>
@@ -149,7 +149,7 @@ export default function ProfileForm({
149149
</div>
150150

151151
{/* Software Background */}
152-
<div className="space-y-3">
152+
<div className="space-y-1.5">
153153
<label className="block text-sm font-semibold text-slate-700">
154154
Software Background
155155
</label>
@@ -165,7 +165,7 @@ export default function ProfileForm({
165165
</div>
166166

167167
{/* Hardware Tier */}
168-
<div className="space-y-3">
168+
<div className="space-y-1.5">
169169
<label className="block text-sm font-semibold text-slate-700">
170170
Hardware Tier
171171
</label>
@@ -197,7 +197,7 @@ export default function ProfileForm({
197197

198198
{/* Language & Timezone Grid */}
199199
<div className="grid grid-cols-1 sm:grid-cols-2 gap-5">
200-
<div className="space-y-3">
200+
<div className="space-y-1.5">
201201
<label className="block text-sm font-semibold text-slate-700">
202202
Language
203203
</label>
@@ -214,7 +214,7 @@ export default function ProfileForm({
214214
</select>
215215
</div>
216216

217-
<div className="space-y-3">
217+
<div className="space-y-1.5">
218218
<label className="block text-sm font-semibold text-slate-700">
219219
Timezone
220220
</label>

auth-server/src/components/sign-in-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export function SignInForm() {
154154
</div>
155155
)}
156156

157-
<div className="space-y-3">
157+
<div className="space-y-1.5">
158158
<label htmlFor="email" className="block text-sm font-semibold text-slate-700">
159159
Email address
160160
</label>
@@ -186,7 +186,7 @@ export function SignInForm() {
186186
)}
187187
</div>
188188

189-
<div className="space-y-3">
189+
<div className="space-y-1.5">
190190
<label htmlFor="password" className="block text-sm font-semibold text-slate-700">
191191
Password
192192
</label>

auth-server/src/components/sign-up-form.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ export function SignUpForm() {
394394
<p className="text-sm text-slate-600">Get started in seconds</p>
395395
</div>
396396

397-
<div className="space-y-3">
397+
<div className="space-y-1.5">
398398
<label htmlFor="name" className="block text-sm font-semibold text-slate-700">
399399
Name <span className="text-red-500">*</span>
400400
</label>
@@ -426,7 +426,7 @@ export function SignUpForm() {
426426
)}
427427
</div>
428428

429-
<div className="space-y-3">
429+
<div className="space-y-1.5">
430430
<label htmlFor="email" className="block text-sm font-semibold text-slate-700">
431431
Email address <span className="text-red-500">*</span>
432432
</label>
@@ -458,7 +458,7 @@ export function SignUpForm() {
458458
)}
459459
</div>
460460

461-
<div className="space-y-3">
461+
<div className="space-y-1.5">
462462
<label htmlFor="password" className="block text-sm font-semibold text-slate-700">
463463
Password <span className="text-red-500">*</span>
464464
</label>
@@ -499,7 +499,7 @@ export function SignUpForm() {
499499
)}
500500
</div>
501501

502-
<div className="space-y-3">
502+
<div className="space-y-1.5">
503503
<label htmlFor="confirmPassword" className="block text-sm font-semibold text-slate-700">
504504
Confirm Password <span className="text-red-500">*</span>
505505
</label>

0 commit comments

Comments
 (0)