fixed logo
This commit is contained in:
@@ -289,13 +289,12 @@ export default function CartItemCard({ item, onUpdate }: CartItemCardProps) {
|
||||
className="object-contain p-2"
|
||||
/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div className="flex items-start gap-2 pt-2">
|
||||
<h3 className="font-bold text-base text-gray-900 line-clamp-2">
|
||||
{item.product.name}
|
||||
</h3>
|
||||
{/* <div
|
||||
<div className="flex items-start gap-2 pt-2">
|
||||
<h3 className="font-bold text-base text-gray-900 line-clamp-2">
|
||||
{item.product.name}
|
||||
</h3>
|
||||
{/* <div
|
||||
className="text-gray-700 leading-relaxed prose prose-sm max-w-none
|
||||
prose-headings:text-gray-900 prose-headings:font-bold
|
||||
prose-p:text-gray-700 prose-p:leading-relaxed
|
||||
@@ -312,7 +311,7 @@ export default function CartItemCard({ item, onUpdate }: CartItemCardProps) {
|
||||
}}
|
||||
/> */}
|
||||
|
||||
{/* {availableStock <= 5 && (
|
||||
{/* {availableStock <= 5 && (
|
||||
<div className="flex items-center gap-1.5">
|
||||
<div className="h-2 w-2 rounded-full bg-amber-500 animate-pulse" />
|
||||
<p className="text-xs text-amber-600 font-semibold">
|
||||
@@ -321,16 +320,16 @@ export default function CartItemCard({ item, onUpdate }: CartItemCardProps) {
|
||||
</div>
|
||||
)} */}
|
||||
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
onClick={handleDelete}
|
||||
disabled={isRemoving}
|
||||
className="w-fit cursor-pointer pt-1 h-auto hover:bg-transparent text-gray-600 hover:text-red-500 transition-colors group"
|
||||
>
|
||||
<Trash2 className="h-5 w-5 group-hover:scale-110 transition-transform" />
|
||||
</Button>
|
||||
</div>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
onClick={handleDelete}
|
||||
disabled={isRemoving}
|
||||
className="w-fit cursor-pointer pt-1 h-auto hover:bg-transparent text-gray-600 hover:text-red-500 transition-colors group"
|
||||
>
|
||||
<Trash2 className="h-5 w-5 group-hover:scale-110 transition-transform" />
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
{/* Price & Quantity */}
|
||||
<div className="flex flex-col items-start gap-2">
|
||||
@@ -396,15 +395,15 @@ export default function CartItemCard({ item, onUpdate }: CartItemCardProps) {
|
||||
variant="outline"
|
||||
size="icon"
|
||||
onClick={handleQuantityIncrease}
|
||||
disabled={isSyncing || localQuantity >= availableStock}
|
||||
disabled={isSyncing}
|
||||
className={`rounded-[10px] h-10 w-10 cursor-pointer border-2 transition-all duration-200 ${
|
||||
localQuantity >= availableStock
|
||||
? "opacity-30 cursor-not-allowed border-gray-200"
|
||||
? "opacity-60 border-gray-200"
|
||||
: "border-gray-900 bg-gray-900 hover:bg-gray-800"
|
||||
} ${isSyncing ? "opacity-50" : ""}`}
|
||||
>
|
||||
<Plus
|
||||
className={`h-4 w-4 ${localQuantity >= availableStock ? "text-gray-400" : "text-white"}`}
|
||||
className={`h-4 w-4 ${localQuantity >= availableStock ? "text-gray-900" : "text-white"}`}
|
||||
/>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user