Skip to content

Commit 660bfd1

Browse files
committed
Aspect ratio
1 parent c8278a4 commit 660bfd1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/Product/DisplayProducts.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const DisplayProducts = ({ products }: IDisplayProductsProps) => (
7777
return (
7878
<div key={uuidv4()} className="group">
7979
<Link href={`/produkt/${encodeURIComponent(slug)}`}>
80-
<div className="aspect-[3/4] relative overflow-hidden bg-gray-100">
80+
<div className="relative overflow-hidden bg-gray-100">
8181
{image ? (
8282
<img
8383
id="product-image"

src/components/Product/ProductCard.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const ProductCard = ({
3232

3333
return (
3434
<div className="group">
35-
<div className="aspect-[3/4] overflow-hidden bg-gray-100 relative">
35+
<div className="overflow-hidden bg-gray-100 relative">
3636
<Link href={`/produkt/${slug}`}>
3737
{image?.sourceUrl ? (
3838
<Image

src/components/Product/SingleProduct.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const SingleProduct = ({ product }: IProductRootObject) => {
5959
<div className="flex flex-col md:grid md:grid-cols-2 md:gap-8">
6060
{/* Image Container */}
6161
<div className="mb-6 md:mb-0 group">
62-
<div className="max-w-xl mx-auto aspect-[3/4] relative overflow-hidden bg-gray-100">
62+
<div className="max-w-xl mx-auto relative overflow-hidden bg-gray-100">
6363
<img
6464
id="product-image"
6565
src={

0 commit comments

Comments
 (0)