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', () => {