diff --git a/frontend/src/lib/components/DocumentRow.svelte b/frontend/src/lib/components/DocumentRow.svelte index 0bf9fdfa..3381f49a 100644 --- a/frontend/src/lib/components/DocumentRow.svelte +++ b/frontend/src/lib/components/DocumentRow.svelte @@ -40,7 +40,7 @@ function safeTagColor(color: string | null | undefined): string {
- +
diff --git a/frontend/src/lib/components/DocumentThumbnail.svelte b/frontend/src/lib/components/DocumentThumbnail.svelte index fe7050c9..ee6023e2 100644 --- a/frontend/src/lib/components/DocumentThumbnail.svelte +++ b/frontend/src/lib/components/DocumentThumbnail.svelte @@ -7,21 +7,27 @@ type Doc = Pick< 'id' | 'thumbnailKey' | 'thumbnailGeneratedAt' | 'contentType' >; -let { doc }: { doc: Doc } = $props(); +let { doc, size = 'sm' }: { doc: Doc; size?: 'sm' | 'lg' } = $props(); const url = $derived(thumbnailUrl(doc)); + +const containerClass = $derived( + size === 'lg' + ? 'relative h-[168px] w-[120px] flex-shrink-0 overflow-hidden rounded-sm border border-line bg-white' + : 'relative h-[84px] w-[60px] flex-shrink-0 overflow-hidden rounded-sm border border-line bg-white' +); +const iconClass = $derived(size === 'lg' ? 'h-16 w-16' : 'h-8 w-8'); -
+
{#if url}