]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
fix: Viewing multiple PDF attachments (#16974)
authorAleksander Grygier <redacted>
Mon, 3 Nov 2025 17:53:26 +0000 (18:53 +0100)
committerGitHub <redacted>
Mon, 3 Nov 2025 17:53:26 +0000 (18:53 +0100)
tools/server/public/index.html.gz
tools/server/webui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentPreviewDialog.svelte

index b5314f4807b0739d0485936a27f0e5b9c21ac251..a796c255c18579093dd7a63e150a4fe9d0cdb327 100644 (file)
Binary files a/tools/server/public/index.html.gz and b/tools/server/public/index.html.gz differ
index c28cb1c1089f09ebca845b3242143fe9e90af4d7..3c1ee7fc5d96d95ff9ee1fe06b98553f0ee45612 100644 (file)
                }
        }
 
+       $effect(() => {
+               if (open) {
+                       pdfImages = [];
+                       pdfImagesLoading = false;
+                       pdfImagesError = null;
+                       pdfViewMode = 'pages';
+               }
+       });
+
        $effect(() => {
                if (open && isPdf && pdfViewMode === 'pages') {
                        loadPdfImages();