Skip to content

Commit

Permalink
Merge pull request #39 from deco-sites/task/10681
Browse files Browse the repository at this point in the history
Task/10681
  • Loading branch information
marcusvl authored Jul 18, 2024
2 parents 582825e + 0381ac0 commit b20dfe7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/product/ProductCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function ProductCard(

return (
<div
class={`card card-compact opacity-100 bg-opacity-100 group w-full p-5 h-[100%] ${
class={`card card-compact opacity-100 bg-opacity-100 group w-full p-2.5 pb-6 sm:p-5 h-[100%] border border-[#D7D7DA] lg:border-0 lg:border-transparent${
align === "center" ? "text-center" : "text-start"
} ${
l?.onMouseOver?.showCardShadow ? "lg:hover:shadow-lg shadow-black" : ""
Expand Down Expand Up @@ -276,7 +276,7 @@ function ProductCard(
height={HEIGHT}
class="absolute transition-opacity rounded-lg w-full opacity-0 lg:group-hover:opacity-100"
sizes="(max-width: 640px) 50vw, 20vw"
loading="lazy"
loading="eager"
decoding="async"
/>
)}
Expand Down
4 changes: 2 additions & 2 deletions components/product/ProductShelf.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ function ProductShelf({
id={id}
class="grid grid-cols-[48px_1fr_48px] px-0 grid-rows-[1fr_48px_1fr_48px]"
>
<Slider class="carousel carousel-start gap-6 col-span-full row-span-full py-2 mb-12">
<Slider class="carousel carousel-center lg:carousel-start space-x-4 p-4 md:gap-6 col-span-full max-w-full sm:space-x-0 row-span-full py-2 mb-12">
{products?.map((product, index) => (
<Slider.Item
index={index}
class="carousel-item w-[270px]"
class="carousel-item !w-[250px]"
>
<ProductCard
product={product}
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"std/": "https://deno.land/[email protected]/",
"partytown/": "https://denopkg.com/deco-cx/[email protected]/",
"daisyui": "npm:[email protected]",
"apps/": "https://denopkg.com/deco-cx/[email protected].11/"
"apps/": "https://denopkg.com/deco-cx/[email protected].12/"
},
"lint": {
"rules": {
Expand Down

0 comments on commit b20dfe7

Please sign in to comment.