Skip to content

Commit b3ddabd

Browse files
committed
mod: Make project card buttons full-width on mobile
1 parent e21852d commit b3ddabd

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

components/home/ProjectCardsSection.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ function ProjectCard({
3838
<p className="text-muted-foreground text-lg">
3939
{project.description}
4040
</p>
41-
<div className="flex gap-3 mt-auto">
42-
<Button asChild className="group/btn">
41+
<div className="flex flex-col sm:flex-row gap-3 mt-auto">
42+
<Button asChild className="group/btn w-full sm:w-auto">
4343
<Link href={`/${project.id}/docs`}>
4444
View Docs
4545
<ArrowRight className="w-4 h-4 ml-2 transition-transform group-hover/btn:translate-x-1" />
4646
</Link>
4747
</Button>
48-
<Button asChild variant="secondary">
48+
<Button asChild variant="secondary" className="w-full sm:w-auto">
4949
<Link href={`/${project.id}`}>Home</Link>
5050
</Button>
5151
</div>
@@ -63,11 +63,11 @@ function ProjectCard({
6363
<h3 className="text-lg font-semibold">{project.name}</h3>
6464
</div>
6565
<p className="text-muted-foreground text-sm">{project.description}</p>
66-
<div className="flex gap-3 mt-auto">
67-
<Button asChild variant="default" size="sm">
66+
<div className="flex flex-col sm:flex-row gap-3 mt-auto">
67+
<Button asChild variant="default" size="sm" className="w-full sm:w-auto">
6868
<Link href={`/${project.id}/docs`}>Docs</Link>
6969
</Button>
70-
<Button asChild variant="secondary" size="sm">
70+
<Button asChild variant="secondary" size="sm" className="w-full sm:w-auto">
7171
<Link href={`/${project.id}`}>Home</Link>
7272
</Button>
7373
</div>

0 commit comments

Comments
 (0)