Skip to content

Commit cfa8197

Browse files
committed
fix: md breakepoint card issue
1 parent 6c8b550 commit cfa8197

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/CategoryArticles/CategoryArticlesInfinite.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ export function RecentArticlesInfinite({ initialArticles, category }: CategoryAr
4545

4646
return (
4747
<>
48-
<ArticlesGrid cardsOrientation="horizontal" className="md:grid-cols-2" locale={locale} articles={articles} />
48+
<ArticlesGrid
49+
cardsOrientation="horizontal"
50+
className="md:grid-cols-1 lg:grid-cols-2"
51+
locale={locale}
52+
articles={articles}
53+
/>
4954
{hasNextPage && (
5055
<Button className="mt-16 w-full p-4" disabled={isFetchingNextPage} onClick={() => fetchNextPage()}>
5156
{buttonText}

src/components/HighlightedCategoryArticles/HighlightedCategoryArticles.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function HighlightedCategoryArticles({ locale, title, categoryId }:
1616
return (
1717
<section className="w-full">
1818
<h2 className="py-12 pb-8 text-3xl font-bold">{title}</h2>
19-
<div className="grid gap-5 md:grid-cols-2">
19+
<div className="grid gap-5 lg:grid-cols-2">
2020
{articles.map((article) => {
2121
return (
2222
<ArticleCard

0 commit comments

Comments
 (0)