diff --git a/frontend/src/App.css b/frontend/src/App.css index 0c60b20..4efbe93 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -41,7 +41,7 @@ } .subsection-heading { - @apply font-semibold mb-2; + @apply font-semibold mb-2 mt-4; } /* buttons */ @@ -59,18 +59,18 @@ /* input field */ .input-field { - @apply border p-2 w-full mb-2 rounded; + @apply border p-2 w-full mb-2 rounded placeholder-gray-400; } .text-area { - @apply border p-2 w-full mb-2 rounded; + @apply border p-2 w-full mb-2 rounded placeholder-gray-400; } /* groups */ .button-group{ @apply flex gap-4 mt-4; } - + /* lists */ .default-list-item { @apply list-disc pl-6 mb-6 diff --git a/frontend/src/components/IngredientListEditor.tsx b/frontend/src/components/IngredientListEditor.tsx index cd54516..bbc2750 100644 --- a/frontend/src/components/IngredientListEditor.tsx +++ b/frontend/src/components/IngredientListEditor.tsx @@ -1,6 +1,9 @@ -import { useState } from "react" import type { Ingredient } from "../types/ingredient" +/** + * Editor for handling the ingredient list + * Ingredients can be edited, added and removed + */ type IngredientListEditorProps = { ingredients: Ingredient[] onChange: (ingredients: Ingredient[]) => void diff --git a/frontend/src/components/RecipeDetailView.tsx b/frontend/src/components/RecipeDetailView.tsx index ece7d3b..5b9e7c9 100644 --- a/frontend/src/components/RecipeDetailView.tsx +++ b/frontend/src/components/RecipeDetailView.tsx @@ -29,6 +29,7 @@ export default function RecipeDetailView() { {/* Ingredients */}

Zutaten

+

For {recipe.servings.amount} {recipe.servings.unit}