mirror of
https://github.com/PR0M3TH3AN/Artstr-Studio.git
synced 2026-11-12 08:30:09 +00:00
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:
1 parent
7439bc12b2
commit
84ad374f2d
1 file changed
+10
@@ -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', () => {
|
||||
|
||||
Reference in new issue
Block a user