diff --git a/app/components/Cart.tsx b/app/components/Cart.tsx index 40d5606..ae2341a 100644 --- a/app/components/Cart.tsx +++ b/app/components/Cart.tsx @@ -59,7 +59,7 @@ function CartLines({ if (!lines) return null; const styles = { page: "col-span-2", - aside: "flex-1 overflow-y-auto", + aside: "flex-1 overflow-y-auto overflow-hidden custom-scroll", }; return (
@@ -106,7 +106,7 @@ function CartLineItem({ const lineItemUrl = useVariantUrl(product.handle, selectedOptions); let styles = { page: "grid md:table-row gap-2 grid-rows-2 grid-cols-[100px_1fr_64px]", - aside: "grid gap-3 grid-rows-[1fr_auto] grid-cols-[100px_1fr_64px] pb-4", + aside: "grid gap-3 grid-rows-[1fr_auto] grid-cols-[100px_1fr] pb-4", }; const cellStyles = { @@ -117,32 +117,38 @@ function CartLineItem({ return ( - + {image && ( {title} )} - { - if (layout === "aside") { - // close the drawer - window.location.href = lineItemUrl; - } - }} - > -

{product.title}

- -