From 817749889a6d4345540c84568c7a5ad202332eec Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 23 Apr 2026 22:18:07 +0200 Subject: [PATCH] refactor(document-thumbnail): read doc.thumbnailUrl instead of composing locally The backend now exposes thumbnailUrl as a serialised computed property on Document, so the component drops its dependency on the frontend URL-builder. PersonDocumentList's inline Doc prop type follows the same shift (#309). Co-Authored-By: Claude Opus 4.7 --- frontend/src/lib/components/DocumentThumbnail.svelte | 8 ++------ .../src/routes/persons/[id]/PersonDocumentList.svelte | 3 +-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/frontend/src/lib/components/DocumentThumbnail.svelte b/frontend/src/lib/components/DocumentThumbnail.svelte index ee6023e2..a77b1ce1 100644 --- a/frontend/src/lib/components/DocumentThumbnail.svelte +++ b/frontend/src/lib/components/DocumentThumbnail.svelte @@ -1,14 +1,10 @@