diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-26 10:42:38 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-26 10:42:38 +0700 |
| commit | 8e92e0b4bfb74ebdf99fbc9d4ca7d47e2513c4e0 (patch) | |
| tree | a6f4614f44090ea5b092343b8d5c9d40a791f80b /src-migrate | |
| parent | 28f9a1235fcf6fdde1983d0a4cf88fc3ba4fbdd2 (diff) | |
<Miqdad> bring back old set qty for desktop view
Diffstat (limited to 'src-migrate')
| -rw-r--r-- | src-migrate/modules/product-detail/components/PriceAction.tsx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx index 2c678c6b..5daf5bed 100644 --- a/src-migrate/modules/product-detail/components/PriceAction.tsx +++ b/src-migrate/modules/product-detail/components/PriceAction.tsx @@ -161,16 +161,15 @@ const PriceAction = ({ product }: Props) => { <div className='h-4' /> <div className='flex gap-x-5 items-center'> {/* Qty */} - <div className='inline-flex items-center border rounded-md overflow-hidden'> + <div className='relative flex items-center'> <button type='button' - className='px-3 py-1 text-gray-500 hover:bg-gray-100' + className='absolute left-0 px-2 py-1 h-full text-gray-500' onClick={() => setQuantityInput(String(Math.max(1, Number(quantityInput) - 1))) } - aria-label='Kurangi' > - – + - </button> <input type='number' @@ -178,15 +177,14 @@ const PriceAction = ({ product }: Props) => { min={1} value={quantityInput} onChange={(e) => setQuantityInput(e.target.value)} - className='w-12 text-center outline-none border-x' + className={style['quantity-input']} /> <button type='button' - className='px-3 py-1 text-gray-500 hover:bg-gray-100' + className='absolute right-0 px-2 py-1 h-full text-gray-500' onClick={() => setQuantityInput(String(Number(quantityInput) + 1)) } - aria-label='Tambah' > + </button> |
