From 7d734808cfa08d6519ee2eccb734280ca8bc14c3 Mon Sep 17 00:00:00 2001 From: angbur <41025473+angbur@users.noreply.github.com> Date: Tue, 3 Jan 2023 16:39:48 +0100 Subject: [PATCH] add responsiveness to the favorites section (#137) --- src/components/atoms/book-tile.astro | 2 +- src/components/atoms/media-tile.astro | 2 +- src/components/atoms/person-tile.astro | 2 +- src/components/atoms/video-tile.astro | 2 +- src/components/sections/favorites-section.astro | 8 ++++---- tailwind.config.cjs | 5 +++++ 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/components/atoms/book-tile.astro b/src/components/atoms/book-tile.astro index 279dd53..ed14810 100644 --- a/src/components/atoms/book-tile.astro +++ b/src/components/atoms/book-tile.astro @@ -13,7 +13,7 @@ const { } = Astro.props; --- - + + + + { const booksSubsection: FavoritesSubsection = { name: 'books', - columnsLayout: 'grid-cols-4', + columnsLayout: 'grid-cols-fluid200', Component: BookTile, ...books, }; const mediasSubsection: FavoritesSubsection = { name: 'medias', - columnsLayout: 'grid-cols-6', + columnsLayout: 'grid-cols-fluid120', Component: MediaTile, ...medias, }; const peopleSubsection: FavoritesSubsection = { name: 'people', - columnsLayout: 'grid-cols-6', + columnsLayout: 'grid-cols-fluid120', Component: PersonTile, ...people, }; const videosSubsection: FavoritesSubsection