From 1c00abe12ecca606049406f671b2fadd6a6c8d75 Mon Sep 17 00:00:00 2001 From: araemer Date: Sat, 25 Oct 2025 08:42:35 +0200 Subject: [PATCH] fix style --- frontend/src/App.css | 23 +++++-------------- .../src/components/basics/SearchField.tsx | 6 +++-- .../InstructionStepListDesktopEditor.tsx | 2 +- .../src/components/recipes/RecipeEditor.tsx | 2 +- 4 files changed, 12 insertions(+), 21 deletions(-) diff --git a/frontend/src/App.css b/frontend/src/App.css index 51b7b09..7b01726 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -42,23 +42,17 @@ @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; - } - - - /* icons */ - .default-icon { - @apply text-gray-400 hover:text-gray-500; - } - - /* errors */ .error-text { @apply text-sm text-red-600; } + /* @todo replace by components! + /* headings */ + .sticky-header { + @apply sticky bg-gray-100 top-0 left-0 right-0 pb-6 border-b-2 border-gray-300; + } + /* groups */ .button-group { @apply flex gap-4 mt-8; @@ -68,11 +62,6 @@ @apply flex gap-2 mb-2 items-center; } - /* lists */ - .default-list { - @apply list-disc pl-6 mb-6; - } - /* containers */ .circular-container { @apply flex-shrink-0 w-7 h-7 rounded-full bg-blue-300 text-white flex items-center justify-center shadow-sm; diff --git a/frontend/src/components/basics/SearchField.tsx b/frontend/src/components/basics/SearchField.tsx index c7a5b6e..4267844 100644 --- a/frontend/src/components/basics/SearchField.tsx +++ b/frontend/src/components/basics/SearchField.tsx @@ -22,6 +22,8 @@ export default function SearchField({onSearchStringChanged}: SearchFieldProps) { onSearchStringChanged(newSearchString) } + const iconStyle: string = "text-gray-400 hover:text-gray-500"; + return (
{/* Input of searchfield @@ -39,7 +41,7 @@ export default function SearchField({onSearchStringChanged}: SearchFieldProps) { Clears search string on click */} {/* Left icon: Looking glass */} -
+
diff --git a/frontend/src/components/recipes/InstructionStepListDesktopEditor.tsx b/frontend/src/components/recipes/InstructionStepListDesktopEditor.tsx index 3a70420..8c5e09a 100644 --- a/frontend/src/components/recipes/InstructionStepListDesktopEditor.tsx +++ b/frontend/src/components/recipes/InstructionStepListDesktopEditor.tsx @@ -53,7 +53,7 @@ export function InstructionStepListDesktopEditor({ return (
-

Zubereitung

+

Zubereitung

i.internalId)} diff --git a/frontend/src/components/recipes/RecipeEditor.tsx b/frontend/src/components/recipes/RecipeEditor.tsx index a38f1a9..ad99bf0 100644 --- a/frontend/src/components/recipes/RecipeEditor.tsx +++ b/frontend/src/components/recipes/RecipeEditor.tsx @@ -89,7 +89,7 @@ export default function RecipeEditor({recipe, onSave, onCancel}: RecipeEditorPro {/* Container defining the maximum width of the content */}
-

+

{recipe.id ? "Rezept bearbeiten" : "Neues Rezept"}