diff --git a/frontend/src/App.css b/frontend/src/App.css index 7b2f261..cd2f91d 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -11,10 +11,14 @@ @apply flex items-center w-screen justify-center min-h-screen bg-gray-50; } - .content-container { + .content-bg { @apply bg-gray-100 w-full min-h-screen max-w-6xl shadow-xl p-8; } + .content-container { + @apply p-6 max-w-2xl mx-auto; + } + /* headings */ .sticky-header { @apply sticky bg-gray-100 top-0 left-0 right-0 pb-6 border-b-2 border-gray-300; diff --git a/frontend/src/components/recipes/RecipeDetailPage.tsx b/frontend/src/components/recipes/RecipeDetailPage.tsx index fb67cff..a67d7dc 100644 --- a/frontend/src/components/recipes/RecipeDetailPage.tsx +++ b/frontend/src/components/recipes/RecipeDetailPage.tsx @@ -59,7 +59,7 @@ export default function RecipeDetailPage() { ingredientList: ingGrp.ingredientList.map((ing) => ({ ...ing, // ensure only to recalculate the amount of ingredients that actually have an amout... - amount: (ing.amount && ing.amount !== undefined) ? ing.amount * factor : undefined, + amount: (ing.amount) ? ing.amount * factor : undefined, })) })) @@ -78,14 +78,14 @@ export default function RecipeDetailPage() { /*Container spanning entire screen used to center content horizontally */