mirror of
https://github.com/vercel/commerce.git
synced 2025-05-16 06:26:58 +00:00
rebase
This commit is contained in:
parent
99e8b00961
commit
5da9b4785b
@ -10,8 +10,8 @@ export async function Carousel() {
|
||||
if (!products?.length) return null;
|
||||
|
||||
return (
|
||||
<div className="relative w-full overflow-hidden pb-6">
|
||||
<div className="flex animate-carousel space-x-4">
|
||||
<div className="relative w-full pb-6 overflow-hidden">
|
||||
<div className="flex space-x-4 animate-carousel">
|
||||
{[...products, ...products].map((product, i) => (
|
||||
<Link
|
||||
key={`${product.handle}${i}`}
|
||||
@ -21,7 +21,7 @@ export async function Carousel() {
|
||||
{product.featuredImage ? (
|
||||
<Image
|
||||
alt={product.title}
|
||||
className="h-full object-contain"
|
||||
className="object-contain h-full"
|
||||
fill
|
||||
sizes="33vw"
|
||||
src={product.featuredImage.url}
|
||||
|
@ -29,7 +29,7 @@ export function GridTileImage({
|
||||
)}
|
||||
>
|
||||
{active !== undefined && active ? (
|
||||
<span className="absolute h-full w-full bg-white opacity-25"></span>
|
||||
<span className="absolute w-full h-full bg-white opacity-25"></span>
|
||||
) : null}
|
||||
{props.src ? (
|
||||
<Image
|
||||
|
Loading…
x
Reference in New Issue
Block a user