#260: replace Success! feedback text with a checkmark so buttons do not resize
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user