summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-08-14 17:13:17 +0100
committerdiogo464 <[email protected]>2025-08-14 17:13:17 +0100
commit432656702032c49e80f34434f30e97e1c8259b45 (patch)
tree23b92e31b76287a8a4b8950aefd75e6f38d65690
parent6194b263f4aa93174272a2a9dd41367a1ecba36e (diff)
feat: make auth buttons full-width on mobile
- History, Login, and Logout buttons now take full width on mobile screens - Maintain auto width on desktop screens (sm breakpoint and up) - Improve mobile touch targets and visual consistency - Stack buttons vertically on mobile for better accessibility 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
-rw-r--r--frontend/components/auth/AuthButtons.tsx16
1 files changed, 8 insertions, 8 deletions
diff --git a/frontend/components/auth/AuthButtons.tsx b/frontend/components/auth/AuthButtons.tsx
index eea9f91..ed30766 100644
--- a/frontend/components/auth/AuthButtons.tsx
+++ b/frontend/components/auth/AuthButtons.tsx
@@ -11,15 +11,15 @@ export async function AuthButtons() {
11 return ( 11 return (
12 <div className="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3"> 12 <div className="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3">
13 <span className="text-sm text-muted-foreground">{user.email}</span> 13 <span className="text-sm text-muted-foreground">{user.email}</span>
14 <div className="flex items-center gap-2 sm:gap-3"> 14 <div className="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3">
15 <Link href="/history"> 15 <Link href="/history" className="w-full sm:w-auto">
16 <Button variant="outline" size="sm"> 16 <Button variant="outline" size="sm" className="w-full sm:w-auto">
17 <Clock className="mr-2 h-4 w-4" /> 17 <Clock className="mr-2 h-4 w-4" />
18 History 18 History
19 </Button> 19 </Button>
20 </Link> 20 </Link>
21 <form action="/logout" method="post"> 21 <form action="/logout" method="post" className="w-full sm:w-auto">
22 <Button type="submit" variant="outline"> 22 <Button type="submit" variant="outline" className="w-full sm:w-auto">
23 <LogOut className="mr-2 h-4 w-4" /> 23 <LogOut className="mr-2 h-4 w-4" />
24 Logout 24 Logout
25 </Button> 25 </Button>
@@ -33,13 +33,13 @@ export async function AuthButtons() {
33 33
34 return ( 34 return (
35 <div className="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3"> 35 <div className="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3">
36 <Link href="/history"> 36 <Link href="/history" className="w-full sm:w-auto">
37 <Button variant="outline" size="sm"> 37 <Button variant="outline" size="sm" className="w-full sm:w-auto">
38 <Clock className="mr-2 h-4 w-4" /> 38 <Clock className="mr-2 h-4 w-4" />
39 History 39 History
40 </Button> 40 </Button>
41 </Link> 41 </Link>
42 <Button asChild> 42 <Button asChild className="w-full sm:w-auto">
43 <a href={authUrl}> 43 <a href={authUrl}>
44 <LogIn className="mr-2 h-4 w-4" /> 44 <LogIn className="mr-2 h-4 w-4" />
45 Login 45 Login