From a4e1abfaae824a146831b5fab9206fbef874a60b Mon Sep 17 00:00:00 2001 From: fen Date: Thu, 17 Sep 2026 14:29:02 -0500 Subject: [PATCH] #260: replace Success! feedback text with a checkmark so buttons do not resize --- internal/web/static/new.js | 2 +- internal/web/static/paste.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/web/static/new.js b/internal/web/static/new.js index 3e4cf2c..41ef6a1 100644 --- a/internal/web/static/new.js +++ b/internal/web/static/new.js @@ -197,7 +197,7 @@ function finishCreate(data) { try { navigator.clipboard.writeText(url); copyBtn.classList.add('ok'); // in-place success feedback (#53) - copyBtn.textContent = 'Success!'; + copyBtn.textContent = '✓'; setTimeout(() => { copyBtn.classList.remove('ok'); copyBtn.textContent = '⧉'; }, 2000); } catch(e) { toast('Copy failed', 'error'); } }); diff --git a/internal/web/static/paste.js b/internal/web/static/paste.js index 0e88715..eec6c26 100644 --- a/internal/web/static/paste.js +++ b/internal/web/static/paste.js @@ -20,7 +20,7 @@ function copyFeedback(btn) { if (!btn) return; if (!btn.dataset.label) btn.dataset.label = btn.textContent; // remember the original label (Copy/Link) btn.classList.add('ok'); - btn.textContent = 'Success!'; + btn.textContent = '✓'; clearTimeout(btn._okh); btn._okh = setTimeout(() => { btn.classList.remove('ok'); btn.textContent = btn.dataset.label; }, 2000); } -- 2.54.0