From 9711b1b3d397a0522e5e0fdc471c37f4c0bdc5eb Mon Sep 17 00:00:00 2001 From: treamz Date: Sun, 22 Mar 2026 10:31:11 +0300 Subject: [PATCH] PDF UX: hide main Execute button for pages tab, reset download on tab switch - Pages tab (delete/rotate/reorder) has inline action buttons, no main Execute - Download link hidden when switching tabs - Result section reset on tab switch --- public/pdf.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/pdf.html b/public/pdf.html index 3907658..a3491f0 100644 --- a/public/pdf.html +++ b/public/pdf.html @@ -1383,9 +1383,13 @@ document.querySelectorAll('.op-panel').forEach(p => p.classList.remove('active')); const panel = document.getElementById('panel-' + tab.dataset.op); if (panel) panel.classList.add('active'); + // Reset result and progress stepResult.style.display = 'none'; - actionWrap.style.display = 'block'; + downloadLink.style.display = 'none'; progressWrap.style.display = 'none'; + // Hide "Выполнить" for tabs with inline actions (pages have own buttons) + const noMainButton = ['pages']; + actionWrap.style.display = noMainButton.includes(tab.dataset.op) ? 'none' : 'block'; }); });