Skip to content

Commit

Permalink
update media queries for wishlist items
Browse files Browse the repository at this point in the history
  • Loading branch information
yurytut1993 committed Jun 19, 2024
1 parent 593d517 commit 1f2c4bf
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ const QuantityDisplay = ({ itemsLength }: WishlistItems) => {
return (
<>
{smItems > 0 && (
<div className="list-item w-40 md:!hidden">
<div className="flex h-40 w-full items-center justify-center bg-gray-200 font-semibold text-gray-500">
<div className="list-item w-32 sm:w-40 md:!hidden">
<div className="flex h-32 w-full items-center justify-center bg-gray-200 font-semibold text-gray-500 sm:h-40">
+{smItems}
</div>
</div>
)}
{mdItems > 0 && (
<div className="hidden w-36 w-36 md:list-item lg:hidden">
<div className="hidden w-36 md:list-item lg:hidden">
<div className="flex h-36 w-full items-center justify-center bg-gray-200 font-semibold text-gray-500">
+{mdItems}
</div>
Expand Down Expand Up @@ -100,9 +100,9 @@ const Wishlist = ({ onDeleteWishlist, wishlist: { items, entityId, name } }: Wis
const defaultImage = product.images.find(({ isDefault }) => isDefault);

return (
<li className="w-40 md:w-36" key={productId}>
<li className="w-32 sm:w-40 md:w-36" key={productId}>
<Link className="mb-2 flex" href={product.path}>
<div className="h-40 w-full md:h-36">
<div className="h-32 w-full sm:h-40 md:h-36">
{defaultImage ? (
<BcImage
alt={defaultImage.altText}
Expand Down

0 comments on commit 1f2c4bf

Please sign in to comment.