We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e651765 commit 2f9049dCopy full SHA for 2f9049d
src/components/react/NewGallery.tsx
@@ -7,7 +7,7 @@ interface Props {
7
images: ImageProps[];
8
}
9
10
-const PAGE_SIZE = 4 as const;
+const PAGE_SIZE = 3 as const; // Todo: make it responsive
11
const INITIAL_PAGE = 1 as const;
12
13
const fetchImagesUpToPage = (images: ImageProps[], nextPage: number): ImageProps[] => {
@@ -48,7 +48,7 @@ const NewGallery: FC<Props> = ({ images }) => {
48
49
return (
50
<>
51
- <div className="grid grid-cols-1 gap-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
+ <div className="grid grid-cols-1 gap-1 md:grid-cols-2 lg:grid-cols-3">
52
{loadedImages.map((image) => (
53
<img key={image.xs.src} src={image.xs.src} alt="thumbnail image" className="" />
54
))}
0 commit comments