Skip to content

Commit 40ea3fe

Browse files
committed
style: optimize button size and layout to prevent page overflow
1 parent 1094cb7 commit 40ea3fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/home/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ export default function HomeComponent() {
3030
{t("description")}
3131
</p>
3232

33-
<div className="mt-10 flex items-center justify-center gap-2">
33+
<div className="mt-10 flex flex-col sm:flex-row items-center justify-center gap-2">
3434
<Button
35-
className="h-11 rounded-xl px-8 py-2 bg-white text-indigo-500 hover:text-indigo-600 border-2 border-indigo-500"
35+
className="h-11 w-full sm:w-fit rounded-xl px-8 py-2 bg-white text-indigo-500 hover:text-indigo-600 border-2 border-indigo-500"
3636
variant="outline"
3737
asChild
3838
>
@@ -49,7 +49,7 @@ export default function HomeComponent() {
4949
</Link>
5050
</Button>
5151
<Button
52-
className="h-11 rounded-xl px-8 py-2 bg-white text-indigo-500 hover:text-indigo-600 border-2 border-indigo-500"
52+
className="h-11 w-full sm:w-fit rounded-xl px-8 py-2 bg-white text-indigo-500 hover:text-indigo-600 border-2 border-indigo-500"
5353
variant="outline"
5454
asChild
5555
>

0 commit comments

Comments
 (0)