From b6bfb9148e68c48e8ccbea69a425c7b06e8b9657 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 22 Apr 2026 23:03:19 +0200 Subject: [PATCH] fix(frontend): use generic document icon for thumbnail fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addresses @leonievoss and @felixbrandt — fix(ui): "the PDF icon misleads for image documents" and "swap for a neutral file icon". The fallback now shows a generic document-text glyph (page outline + three text lines) instead of the PDF-specific icon with the folded corner. Applies equally well to PDFs, JPEG/PNG scans, and TIFF documents — all of which can land in the fallback path. Also bumped the icon from h-6/w-6 to h-8/w-8 — the previous 24px glyph looked sparse inside the 60×84 tile (Leonie, post-merge iteration point #2). Refs #307 Co-Authored-By: Claude Opus 4.7 --- frontend/src/lib/components/DocumentThumbnail.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/DocumentThumbnail.svelte b/frontend/src/lib/components/DocumentThumbnail.svelte index d35cfbf7..fe7050c9 100644 --- a/frontend/src/lib/components/DocumentThumbnail.svelte +++ b/frontend/src/lib/components/DocumentThumbnail.svelte @@ -32,18 +32,21 @@ const url = $derived(thumbnailUrl(doc)); /> {:else}