Code Input And Shopping Cart Scroll Fixed

main
Pedram Keshavarzi 3 years ago
parent ac0bcdcb95
commit de772a6d2b
  1. 2
      src/components/ShoppingCart/Code/index.js
  2. 2
      src/components/ShoppingCart/index.js

@ -13,7 +13,7 @@ function Code({ codeId, setCodeId, userId, factorId }) {
<form className="flex w-full flex-row border border-red52 border-solid rounded-xl my-3 overflow-hidden"> <form className="flex w-full flex-row border border-red52 border-solid rounded-xl my-3 overflow-hidden">
<input <input
type="text" type="text"
className="border-0 flex-1 text-right pr-3 font-medium text-tiny bg-white placeholder:text-blue5F dark:text-white" className="border-0 flex-1 text-right pr-3 font-medium text-tiny bg-white outline-none placeholder:text-blue5F dark:text-white"
placeholder={"کد تخفیف دارید ؟"} placeholder={"کد تخفیف دارید ؟"}
/> />
<button className={"py-4 px-6 text-tiny bg-red52 text-white border border-red52 border-solid"} onClick={setOff}>ثبت کد</button> <button className={"py-4 px-6 text-tiny bg-red52 text-white border border-red52 border-solid"} onClick={setOff}>ثبت کد</button>

@ -259,7 +259,7 @@ function ShoppingCart({
: :
<div className="flex flex-col justify-between items-center bg-gray-100 left-0 pt-24" style={{height: '100vh'}}> <div className="flex flex-col justify-between items-center bg-gray-100 left-0 pt-24" style={{height: '100vh'}}>
<div className={`w-full flex items-center flex-col ${list?.length > 3 && 'overflow-x-hidden overflow-scroll'}`} style={{height: '35%'}}> <div className={`w-full flex items-center flex-col ${list?.length > 3 && 'overflow-x-hidden overflow-scroll'}`} style={{height: '42%'}}>
{list.map((product, index) => ( {list.map((product, index) => (
<Product key={index} product={product} /> <Product key={index} product={product} />

Loading…
Cancel
Save