diff --git a/src/lib/components/Catalog.svelte b/src/lib/components/Catalog.svelte index 5806af5..a3519f3 100644 --- a/src/lib/components/Catalog.svelte +++ b/src/lib/components/Catalog.svelte @@ -1,17 +1,38 @@ {#if $catalog} {#if $catalog.length > 0}
-
- {#each $catalog as { id } (id)} - - {/each} +
+ +
+ {#if search && sortedCatalog.length === 0} +
+

No results found.

+
+ {:else} +
+ {#each sortedCatalog as { id } (id)} + + {/each} +
+ {/if}
{:else}
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 9ca74ec..a282226 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,6 +1,5 @@