From 86f40e78c42625d3f0027f2c2a24407e5eafdacf Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 16 Jul 2024 18:37:46 +0000 Subject: [PATCH] Fix address copy wipe timer and make it hover-interactive --- index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 51d1326..02cca34 100644 --- a/index.html +++ b/index.html @@ -172,6 +172,9 @@ float: right; cursor: pointer; } + .address-copy:hover { + transform: scale(0.9, 0.9); + } .clipboard-logo { height: 17px; } @@ -462,9 +465,9 @@ navigator.clipboard.writeText(text); const copy_elem = document.getElementById("addr_copy_" + element_id); copy_elem.innerHTML = CLIPBOARD_CHECK_SVG; - setInterval(function() { + setTimeout(function() { copy_elem.innerHTML = CLIPBOARD_SVG; - }, 2000); + }, 1500); } }); -- 2.39.5