From 0c8100ddcb4ca48637dd0958c5e3abc30744738c Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 14 Oct 2020 17:56:50 -0300 Subject: [PATCH] changes --- components/cart/CartItem/CartItem.module.css | 8 ++++++++ components/cart/CartItem/CartItem.tsx | 9 +++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/components/cart/CartItem/CartItem.module.css b/components/cart/CartItem/CartItem.module.css index 6165b05ed..c0830b924 100644 --- a/components/cart/CartItem/CartItem.module.css +++ b/components/cart/CartItem/CartItem.module.css @@ -7,3 +7,11 @@ .quantity::-webkit-inner-spin-button { @apply appearance-none m-0; } + +.productImage { + position: absolute; + top: 0; + left: -10px; + top: 15px; + transform: scale(1.9); +} diff --git a/components/cart/CartItem/CartItem.tsx b/components/cart/CartItem/CartItem.tsx index 758fec2d5..7d092f6aa 100644 --- a/components/cart/CartItem/CartItem.tsx +++ b/components/cart/CartItem/CartItem.tsx @@ -3,7 +3,7 @@ import usePrice from '@lib/bigcommerce/use-price' import useUpdateItem from '@lib/bigcommerce/cart/use-update-item' import useRemoveItem from '@lib/bigcommerce/cart/use-remove-item' import { ChangeEvent, useEffect, useState } from 'react' -import styles from './CartItem.module.css' +import s from './CartItem.module.css' const CartItem = ({ item, @@ -58,10 +58,7 @@ const CartItem = ({ return (
  • - +
    {item.name} @@ -73,7 +70,7 @@ const CartItem = ({ type="number" max={99} min={0} - className={styles.quantity} + className={s.quantity} value={quantity} onChange={handleQuantity} onBlur={handleBlur}