Slide deck: surface "Export deck as PDF" in the Print & Save panel

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 <[email protected]>
This commit is contained in:
thePR0M3TH3ANandClaude Opus 4.7 committed 2026-05-26 14:27:22 -04:00
1 parent 7439bc12b2
commit 84ad374f2d
1 file changed
+10
+10
View File
@@ -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 @@
<button class="primary" id="printBtn">Print / Save PDF</button>
<button id="exportJpegBtn">Export JPEG</button>
</div>
<div class="buttonRow" id="deckExportRow" style="display:none">
<button type="button" class="primary" id="deckExportPdfBtn">Export deck as PDF</button>
</div>
<div class="buttonRow">
<button id="saveProjectBtn">Save project (JSON)</button>
<button type="button" class="danger" id="closeProjectBtn">Close project</button>
@@ -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', () => {