mirror of
https://github.com/vercel/commerce.git
synced 2025-05-21 17:06:58 +00:00
center image gallery photos
This commit is contained in:
parent
59054f160c
commit
71c2f6c5d1
@ -57,7 +57,7 @@ export function Gallery({ images }: { images: { src: string; altText: string }[]
|
||||
</div>
|
||||
|
||||
{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) => {
|
||||
const isActive = index === currentImage;
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user