feat: add copy-flash visual feedback on click-to-copy
All checks were successful
check / check (push) Successful in 9s

When a user clicks to copy text (addresses, tx hashes, etc.), the copied
element now briefly flashes with inverted colors (bg/fg swap) and fades
back over ~300ms. This provides localized visual feedback in addition to
the existing flash message.

Applied to all click-to-copy elements across all views.

closes #100
This commit is contained in:
user
2026-02-28 15:55:57 -08:00
committed by Jeffrey Paul
parent 09c52b2519
commit ff4b5ee24d
9 changed files with 49 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ const {
hideError,
showView,
showFlash,
flashCopyFeedback,
addressTitle,
addressDotHtml,
escapeHtml,
@@ -117,6 +118,7 @@ function show(txInfo) {
copyEl.onclick = () => {
navigator.clipboard.writeText(copyEl.dataset.copy);
showFlash("Copied!");
flashCopyFeedback(copyEl);
};
}
} else {