From 1bd1952ecb1514c3b1542fb32abe3b7ed391812c Mon Sep 17 00:00:00 2001 From: Anika Raemer Date: Mon, 8 Sep 2025 20:19:03 +0200 Subject: [PATCH] css --- frontend/src/App.css | 16 ++++++++++++---- .../src/components/IngredientGroupListEditor.tsx | 11 ++++++----- frontend/src/components/IngredientListEditor.tsx | 2 +- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/frontend/src/App.css b/frontend/src/App.css index 549732a..e9a992d 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -46,15 +46,15 @@ /* buttons */ .primary-button { - @apply bg-blue-300 px-4 py-2 shadow-md rounded-lg hover:bg-blue-400 text-gray-600 + @apply bg-blue-300 px-4 py-2 shadow-md rounded-lg hover:bg-blue-400 text-gray-600 whitespace-nowrap } .default-button{ - @apply bg-gray-300 px-4 py-2 shadow-md rounded-lg hover:bg-gray-400 text-gray-600 + @apply bg-gray-300 px-4 py-2 shadow-md rounded-lg hover:bg-gray-400 whitespace-nowrap text-gray-600 } .dark-button{ - @apply bg-gray-600 text-white rounded px-4 py-2 + @apply bg-gray-600 hover:bg-gray-800 text-white shadow-md rounded px-4 py-2 whitespace-nowrap } /* input field */ @@ -71,9 +71,17 @@ @apply flex gap-4 mt-4; } + .horizontal-input-group{ + @apply flex gap-2 mb-2 items-center; + } + /* lists */ .default-list { - @apply list-disc pl-6 mb-6 + @apply list-disc pl-6 mb-6; + } + + .ingredient-group-card { + @apply py-4 border-b border-gray-400; } } \ No newline at end of file diff --git a/frontend/src/components/IngredientGroupListEditor.tsx b/frontend/src/components/IngredientGroupListEditor.tsx index 889fcc5..bf0da33 100644 --- a/frontend/src/components/IngredientGroupListEditor.tsx +++ b/frontend/src/components/IngredientGroupListEditor.tsx @@ -31,10 +31,11 @@ export function IngredientGroupListEditor({ ingredientGroupList, onChange }: Ing } return (
-

Ingredient Groups

+ {/* remove bottom margin from this headingas the group card has a top padding */} +

Ingredient Groups

{ingredientGroupList.map((ingGrp, index) => ( -
-
+
+