From fb7a00d5223a35ab0b18a934fc9bbddf3c7418e9 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sun, 31 May 2026 13:14:24 -0400 Subject: [PATCH] Preview pane: hide Print / Save PDF on pixel-art designs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pixel-art designs already expose their own one-click Download PNG / GIF button (commit 95a39cc), which produces the right asset for raster sprites at the right native scale. Print / Save PDF on top of that is redundant + confusing — a printed PDF of a 32x32 pixel sprite isn't a useful artefact. Gate the printBtn injection on mode !== 'pixelart'. All other modes (cover, slide, deck, customart, jewel, disc-design, disc) keep the button as before. --- src/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.html b/src/index.html index 695ede5..b16e942 100644 --- a/src/index.html +++ b/src/index.html @@ -22387,7 +22387,10 @@ actionsDiv.insertBefore(import1Btn, saveJsonBtn); actionsDiv.insertBefore(import2Btn, saveJsonBtn); - } else { + } else if (mode !== 'pixelart') { + // Pixel-art designs have their own PNG / GIF download button + // a few lines up — Print / Save PDF doesn't make sense for + // raster sprites at small native resolutions. const printBtn = document.createElement('button'); printBtn.type = 'button'; printBtn.textContent = 'Print / Save PDF';