mirror of
https://github.com/vercel/commerce.git
synced 2025-05-22 01:16: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>
|
</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 (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user