Skip to content

Commit 822212c

Browse files
committed
fix search input text to light and clean op the recipies list a bit
1 parent aa66cef commit 822212c

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

src/lib/components/public/recipes/RecipesList.svelte

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,21 @@
2929
{recipe.short_description}
3030
</span>
3131
<div class="flex gap-2">
32-
<span>Bevat allergie:</span>
32+
{#if recipe.includes_allergies.length > 0}
33+
<span>Bevat allergie:</span>
34+
{/if}
3335
{#each recipe.includes_allergies ?? [] as allergy}
3436
<span class="bg-blue-200 text-blue-800 text-xs font-semibold px-1 py-0.5 rounded">
3537
{allergy.name}
3638
</span>
3739
{/each}
3840
</div>
39-
<hr class="border-gray-400 my-2" />
40-
<div class="flex gap-2 justify-between">
41+
<hr class="border-gray-400 my-1" />
42+
<div class="flex gap-2 justify-between text-sm">
4143
<span>Gemaakt op: {new Date(recipe.created_at).toLocaleDateString()}</span>
4244
<span
43-
>Van: <a href={`/gebruikers/${recipe.created_by.username}`}
44-
>{recipe.created_by.username}</a
45+
>Van: <a href={`/gebruikers/${recipe.created_by.title}`}
46+
>{recipe.created_by.title}</a
4547
></span
4648
>
4749
</div>

src/lib/components/public/search/Search.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@
238238
<div class="flex items-center gap-2">
239239
<div class="relative min-w-0 flex-1">
240240
<input
241-
class={`block w-full max-w-full min-w-0 rounded border border-slate-300 bg-white pr-9 placeholder:font-medium placeholder:text-slate-500 focus:border-emerald-600 focus:ring-emerald-600 ${inputClasses}`}
241+
class={`block w-full max-w-full min-w-0 rounded border border-slate-300 bg-white pr-9 text-black placeholder:font-medium placeholder:text-slate-500 focus:border-emerald-600 focus:ring-emerald-600 ${inputClasses}`}
242242
bind:value={query}
243243
bind:this={searchInput}
244244
{autofocus}

0 commit comments

Comments
 (0)