Skip to content

Commit 449a6b5

Browse files
committed
fix: 🐛 blog post page cta overflow
1 parent 631f6ce commit 449a6b5

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

app/posts/[slug]/page.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,16 @@ export default async function PostPage({ params }: { params: Promise<{ slug: str
6969
<article className="mt-8">
7070
<MDXContent source={post.source} />
7171
</article>
72-
<div className="border-color mt-8 flex w-full flex-row justify-between gap-6 border-t pt-8">
73-
<Link href="/posts" className={cn(buttonVariants({ variant: 'outline' }), 'w-full')}>
72+
<div className="border-color mt-8 flex w-full flex-row justify-center gap-4 border-t pt-8">
73+
<Link href="/posts" className={cn(buttonVariants({ variant: 'outline' }), 'w-2/5 md:w-1/2')}>
7474
<ChevronLeft width={16} height={16} />
7575
&nbsp;All posts
7676
</Link>
7777
{!!previousPost && (
78-
<Link href={`/posts/${previousPost.slug}`} className={cn(buttonVariants({ variant: 'outline' }), 'w-full')}>
78+
<Link
79+
href={`/posts/${previousPost.slug}`}
80+
className={cn(buttonVariants({ variant: 'outline' }), 'w-2/5 md:w-1/2')}
81+
>
7982
<ChevronRight width={16} height={16} />
8083
&nbsp;Next
8184
</Link>

0 commit comments

Comments
 (0)