From: Aleksander Grygier Date: Mon, 3 Nov 2025 17:53:26 +0000 (+0100) Subject: fix: Viewing multiple PDF attachments (#16974) X-Git-Tag: upstream/0.0.7011~72 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=e7da30b584dc1f2ee0414c4a1298ce64eef97e8d;p=pkg%2Fggml%2Fsources%2Fllama.cpp fix: Viewing multiple PDF attachments (#16974) --- diff --git a/tools/server/public/index.html.gz b/tools/server/public/index.html.gz index b5314f48..a796c255 100644 Binary files a/tools/server/public/index.html.gz and b/tools/server/public/index.html.gz differ diff --git a/tools/server/webui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentPreviewDialog.svelte b/tools/server/webui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentPreviewDialog.svelte index c28cb1c1..3c1ee7fc 100644 --- a/tools/server/webui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentPreviewDialog.svelte +++ b/tools/server/webui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentPreviewDialog.svelte @@ -134,6 +134,15 @@ } } + $effect(() => { + if (open) { + pdfImages = []; + pdfImagesLoading = false; + pdfImagesError = null; + pdfViewMode = 'pages'; + } + }); + $effect(() => { if (open && isPdf && pdfViewMode === 'pages') { loadPdfImages();