center image gallery photos

This commit is contained in:
StephDietz 2023-07-12 15:59:42 -05:00
parent 59054f160c
commit 71c2f6c5d1

View File

@ -57,7 +57,7 @@ export function Gallery({ images }: { images: { src: string; altText: string }[]
</div> </div>
{images.length > 1 ? ( {images.length > 1 ? (
<div className="flex space-x-2 overflow-auto"> <div className="flex items-center justify-center space-x-2 overflow-auto">
{images.map((image, index) => { {images.map((image, index) => {
const isActive = index === currentImage; const isActive = index === currentImage;
return ( return (