diff options
Diffstat (limited to 'frontend/components/auth/AuthButtons.tsx')
| -rw-r--r-- | frontend/components/auth/AuthButtons.tsx | 16 |
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 |
