#260: replace Success! feedback text with a checkmark so buttons do not resize
This commit is contained in:
1 parent
ca785f5648
commit
a4e1abfaae
2 files changed
+2
-2
No files matched your search
@@ -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'); }
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user