Skip to content

Commit

Permalink
fix: fix layout shift on last page in the pagination grid
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Jan 26, 2024
1 parent a33d9cb commit 52d8bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/news/NewsItemGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function NewsItemGrid({ newsData, t }: NewsItemGridProps) {

return (
<>
<div className='grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3'>
<div className='grid min-h-[752px] grid-cols-1 gap-4 sm:min-h-[368px] sm:grid-cols-2 lg:min-h-[240px] lg:grid-cols-3'>
{currentData.map((data) => (
<NewsItem
key={data.id}
Expand Down

0 comments on commit 52d8bba

Please sign in to comment.