+
{components.slice(0, indexToView + 1)}
+ {(showMoreButton || true) && wrapMoreButtonInSiteGrid
+ ?
+ : renderMoreButton()}
+
>;
}
diff --git a/src/photo/MorePhotosRoot.tsx b/src/photo/MorePhotosRoot.tsx
index 2c4fe642..fe1b471b 100644
--- a/src/photo/MorePhotosRoot.tsx
+++ b/src/photo/MorePhotosRoot.tsx
@@ -37,6 +37,7 @@ export function MorePhotosRoot({
};
}
}}
+ wrapMoreButtonInSiteGrid
/>
);
}
diff --git a/src/photo/index.ts b/src/photo/index.ts
index 1a06ec6c..8717aa01 100644
--- a/src/photo/index.ts
+++ b/src/photo/index.ts
@@ -1,5 +1,5 @@
import { FilmSimulation } from '@/simulation';
-import { SHOW_EXIF_DATA } from '@/site/config';
+import { HIGH_DENSITY_GRID, SHOW_EXIF_DATA } from '@/site/config';
import { ABSOLUTE_PATH_FOR_HOME_IMAGE } from '@/site/paths';
import { formatDateFromPostgresString } from '@/utility/date';
import {
@@ -14,10 +14,11 @@ import type { Metadata } from 'next';
export const GENERATE_STATIC_PARAMS_LIMIT = 1000;
-export const PHOTO_LOAD_MULTIPLE_ROOT =
+export const INFINITE_SCROLL_MULTIPLE_ROOT =
process.env.NODE_ENV === 'development' ? 2 : 12;
-export const PHOTO_LOAD_MULTIPLE_GRID =
- process.env.NODE_ENV === 'development' ? 4 : 36;
+export const INFINITE_SCROLL_MULTIPLE_GRID = HIGH_DENSITY_GRID
+ ? process.env.NODE_ENV === 'development' ? 5 : 20
+ : process.env.NODE_ENV === 'development' ? 4 : 24;
export const GRID_THUMBNAILS_TO_SHOW_MAX = 12;