From 69ae67e3d4d4f0dde21fb8ade2124c4eca5969b6 Mon Sep 17 00:00:00 2001 From: Philippe Martin Date: Thu, 20 Jun 2024 18:44:16 +0200 Subject: [PATCH] refactor: light mode for recipes page Signed-off-by: Philippe Martin --- packages/frontend/src/lib/Card.svelte | 2 +- packages/frontend/src/lib/RecipeCard.svelte | 10 +++++----- packages/frontend/src/lib/RecipeStatus.svelte | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/frontend/src/lib/Card.svelte b/packages/frontend/src/lib/Card.svelte index 27dfc1c34..339e5186f 100644 --- a/packages/frontend/src/lib/Card.svelte +++ b/packages/frontend/src/lib/Card.svelte @@ -26,7 +26,7 @@ export let primaryBackground: string = 'bg-charcoal-800'; {/if} -
+
{#if title}
{title} diff --git a/packages/frontend/src/lib/RecipeCard.svelte b/packages/frontend/src/lib/RecipeCard.svelte index 9ea091d42..1d2165db3 100644 --- a/packages/frontend/src/lib/RecipeCard.svelte +++ b/packages/frontend/src/lib/RecipeCard.svelte @@ -22,8 +22,8 @@ $: localPath = findLocalRepositoryByRecipeId($localRepositories, recipe.id);
- {recipe.name} - {recipe.description} + {recipe.name} + {recipe.description}
@@ -34,7 +34,7 @@ $: localPath = findLocalRepositoryByRecipeId($localRepositories, recipe.id); {#if localPath}
+ class="bg-[var(--pd-label-bg)] text-[var(--pd-label-text)] max-w-full rounded-md p-2 mb-2 flex flex-row w-min h-min text-xs text-nowrap items-center"> {localPath.path} @@ -45,7 +45,7 @@ $: localPath = findLocalRepositoryByRecipeId($localRepositories, recipe.id);
-
+
{#if recipe.ref} {recipe.ref} {/if} @@ -53,7 +53,7 @@ $: localPath = findLocalRepositoryByRecipeId($localRepositories, recipe.id); {/if} - {loading ? 'Cloning...' : localRepository ? 'Recipe cloned' : 'Clone recipe'}