From 5ed3ad4fa3201356e00d0573f4932fbf191d8586 Mon Sep 17 00:00:00 2001 From: Konrad Szwarc Date: Wed, 25 Jan 2023 09:58:15 +0100 Subject: [PATCH] Preserve consistent gap between items in the favorites section (#170) --- src/web/sections/favorites/book-tile.astro | 2 +- .../sections/favorites/favorites-section.web.astro | 8 ++++---- .../sections/favorites/favorites-sub-section.astro | 12 +++++++++--- src/web/sections/favorites/media-tile.astro | 2 +- src/web/sections/favorites/person-tile.astro | 2 +- src/web/sections/favorites/video-tile.astro | 2 +- tailwind.config.cjs | 8 -------- 7 files changed, 17 insertions(+), 19 deletions(-) diff --git a/src/web/sections/favorites/book-tile.astro b/src/web/sections/favorites/book-tile.astro index 166424c..44b6ca3 100644 --- a/src/web/sections/favorites/book-tile.astro +++ b/src/web/sections/favorites/book-tile.astro @@ -8,7 +8,7 @@ export interface Props extends Book {} const { author, image, title, url } = Astro.props; --- - +
diff --git a/src/web/sections/favorites/favorites-section.web.astro b/src/web/sections/favorites/favorites-section.web.astro index 6a99e44..88ad6f3 100644 --- a/src/web/sections/favorites/favorites-section.web.astro +++ b/src/web/sections/favorites/favorites-section.web.astro @@ -15,16 +15,16 @@ const { config, books, medias, people, videos } = Astro.props;
- + {books?.data.map((book) => )} - + {people?.data.map((person) => )} - + {videos?.data.map((video) => )} - + {medias?.data.map((media) => )}
diff --git a/src/web/sections/favorites/favorites-sub-section.astro b/src/web/sections/favorites/favorites-sub-section.astro index f225b4b..a3653d2 100644 --- a/src/web/sections/favorites/favorites-sub-section.astro +++ b/src/web/sections/favorites/favorites-sub-section.astro @@ -4,19 +4,25 @@ import Typography from '@/web/components/typography.astro'; export interface Props { subSection?: SubSection; - class: string; + minTileWidth: number; } -const { subSection, ...props } = Astro.props; +const { subSection, minTileWidth } = Astro.props; --- { subSection && (