From 942a311d49b1d08974cb96cd384bfbdb7ed3e301 Mon Sep 17 00:00:00 2001 From: stilt0n Date: Sat, 21 Dec 2024 13:11:03 -0500 Subject: [PATCH] use fixed image to text ratio in recipe cards --- .../recipe-gallery/recipe-card.client.tsx | 20 ++++++++++++------- components/recipe-gallery/recipe-gallery.tsx | 5 ++++- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/components/recipe-gallery/recipe-card.client.tsx b/components/recipe-gallery/recipe-card.client.tsx index bc4ef6b..7433666 100644 --- a/components/recipe-gallery/recipe-card.client.tsx +++ b/components/recipe-gallery/recipe-card.client.tsx @@ -30,7 +30,7 @@ export const RecipeCardDesign = (props: RecipeCardDesignProps) => { className='flex flex-col md:flex-row w-full h-full max-4-4xl cursor-pointer' onClick={props.onClick} > -
+
{ className='w-full h-full object-cover' />
-
- +
+ {props.title} {props.author ? ( -

- Author: {props.author} +

+ {props.author}

) : undefined} - - {props.description} + +
+ {props.description} +
{ const { id, ...recipeProps } = recipe; return ( -
  • +
  • );