perf(ui): increase viewport in gallery

This allows us to prefetch more images and reduce how often placeholders
are shown as we fetch more images in the gallery.
This commit is contained in:
psychedelicious
2025-07-10 12:56:50 +10:00
parent 0d67ee6548
commit aced349152

View File

@@ -511,7 +511,7 @@ export const NewGallery = memo(() => {
ref={virtuosoRef}
context={context}
data={imageNames}
increaseViewportBy={2048}
increaseViewportBy={4096}
itemContent={itemContent}
computeItemKey={computeItemKey}
components={components}