diff --git a/frontend/src/lib/components/layout/search-form.svelte b/frontend/src/lib/components/layout/search-form.svelte index 1d1e945..fdc3c5a 100644 --- a/frontend/src/lib/components/layout/search-form.svelte +++ b/frontend/src/lib/components/layout/search-form.svelte @@ -10,6 +10,7 @@ import { getLibraryState } from '$lib/state/library.svelte'; import type { PaginatedResponse, Book } from '$lib/schema'; import BookImage from '../view/book-image.svelte'; + import GeneratedCover from '../view/generated-cover.svelte'; import { goto } from '$app/navigation'; const libraryState = getLibraryState(); @@ -104,10 +105,16 @@ class="cursor-pointer" >
- + {#if book.cover_image} + + {:else} +
+ +
+ {/if}
{book.title} {book.subtitle} diff --git a/frontend/src/lib/components/view/book-cover.svelte b/frontend/src/lib/components/view/book-cover.svelte index 903a4b9..526164f 100644 --- a/frontend/src/lib/components/view/book-cover.svelte +++ b/frontend/src/lib/components/view/book-cover.svelte @@ -1,5 +1,6 @@ - {book.title} - {#if authors} - {authors} - {/if} + {/if} diff --git a/frontend/src/lib/components/view/book-thumbnail.svelte b/frontend/src/lib/components/view/book-thumbnail.svelte index 6fb35a7..762d01e 100644 --- a/frontend/src/lib/components/view/book-thumbnail.svelte +++ b/frontend/src/lib/components/view/book-thumbnail.svelte @@ -1,6 +1,7 @@ + + + + +