From 84ad374f2de64b29dc7af93c95dc3477a58f88d6 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Tue, 26 May 2026 14:27:22 -0400 Subject: [PATCH] Slide deck: surface "Export deck as PDF" in the Print & Save panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The single-page Print / Save PDF row is CSS-hidden in deck mode (it doesn't make sense for the sorter view), so my previous context-aware printBtn handler had no entry point users could actually click. Add a dedicated #deckExportRow with an "Export deck as PDF" button directly in the Print & Save fieldset. CSS shows it only in template-deck mode, and only when no single slide is open in the editor (otherwise users get the regular single-page print path back). Click wires straight to exportDeckAsPdf — same multi-page, themed, edge-to-edge output the previous commit set up. Co-Authored-By: Claude Opus 4.7 --- src/index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/index.html b/src/index.html index 0450b7d..f159e88 100644 --- a/src/index.html +++ b/src/index.html @@ -1324,6 +1324,9 @@ body.template-deck #exportFieldset, body.template-deck #layersFieldset, body.template-deck #printExportRow { display: none !important; } + /* Deck Builder gets a dedicated "Export deck as PDF" row in place of + the single-page print row. Hidden again while editing one slide. */ + body.template-deck:not(.editing-deck-slide) #deckExportRow { display: flex !important; } /* Standalone Pixel Art: only Layout, Metadata and Print/Save apply. */ body.template-pixelart #coverSizeFieldset, body.template-pixelart #coverArtworkFieldset, @@ -2789,6 +2792,9 @@ +
@@ -21290,6 +21296,10 @@ if (inDeckSorter) exportDeckAsPdf(); else printWithCurrentFilename(); }); + // Deck Builder-specific button in the Print & Save panel — the + // single-page #printBtn is CSS-hidden in deck sorter view, so this + // is the discoverable entry point for the multi-page export. + $('deckExportPdfBtn')?.addEventListener('click', exportDeckAsPdf); // Preview modal event listeners $('previewSaveJsonBtn').addEventListener('click', () => {