Skip to content

Commit 2f9049d

Browse files
committed
3 columns gallery
1 parent e651765 commit 2f9049d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/react/NewGallery.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface Props {
77
images: ImageProps[];
88
}
99

10-
const PAGE_SIZE = 4 as const;
10+
const PAGE_SIZE = 3 as const; // Todo: make it responsive
1111
const INITIAL_PAGE = 1 as const;
1212

1313
const fetchImagesUpToPage = (images: ImageProps[], nextPage: number): ImageProps[] => {
@@ -48,7 +48,7 @@ const NewGallery: FC<Props> = ({ images }) => {
4848

4949
return (
5050
<>
51-
<div className="grid grid-cols-1 gap-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
51+
<div className="grid grid-cols-1 gap-1 md:grid-cols-2 lg:grid-cols-3">
5252
{loadedImages.map((image) => (
5353
<img key={image.xs.src} src={image.xs.src} alt="thumbnail image" className="" />
5454
))}

0 commit comments

Comments
 (0)