From 4e89b0186f10636e3fdd69283faef855c121d4be Mon Sep 17 00:00:00 2001 From: David Ball Date: Sun, 14 Jul 2024 14:43:03 -0400 Subject: [PATCH] Set max-width on BrandCard, which flex positions inside its container, making the BrandCards smaller. Renamed CSS attributes for BrandCard, CategoryCard, and ProductCard. --- src/components/BrandCard.astro | 17 +++++++++-------- src/components/CategoryCard.astro | 16 ++++++++-------- src/components/ProductCard.astro | 25 ++++++++++--------------- 3 files changed, 27 insertions(+), 31 deletions(-) diff --git a/src/components/BrandCard.astro b/src/components/BrandCard.astro index 01d2157..27d4308 100644 --- a/src/components/BrandCard.astro +++ b/src/components/BrandCard.astro @@ -8,13 +8,13 @@ interface Props { const { brand } = Astro.props; --- -
  • {brand.logoUrl !== undefined && {brand.name}}
  • diff --git a/src/components/CategoryCard.astro b/src/components/CategoryCard.astro index 5744e6d..1182586 100644 --- a/src/components/CategoryCard.astro +++ b/src/components/CategoryCard.astro @@ -8,7 +8,7 @@ interface Props { const { category } = Astro.props; --- -
  • {category.imageUrl !== undefined && {category.category}}

    @@ -21,7 +21,7 @@ const { category } = Astro.props;

  • diff --git a/src/components/ProductCard.astro b/src/components/ProductCard.astro index 2bdd3e6..352d146 100644 --- a/src/components/ProductCard.astro +++ b/src/components/ProductCard.astro @@ -9,7 +9,7 @@ interface Props { const { product } = Astro.props; --- -