Fix display consistency across all views
All checks were successful
check / check (push) Successful in 18s
All checks were successful
check / check (push) Successful in 18s
Receive view: address now shows color dot and etherscan link, matching every other address display in the app. Send view "From": address now includes etherscan link alongside the existing color dot. Send view "What to send" (ERC-20 from token view): shows token symbol as bold heading, then full contract address below with color dot, copy-on-click, and etherscan link. Approval views: tx approval From/To addresses now show color dots and etherscan links instead of bare text. Site approval address adds etherscan link. Tx approval value uses 4 decimal places consistent with all other amount displays. Home tx list: row padding changed from py-1 to py-2, matching addressDetail and addressToken transaction lists.
This commit is contained in:
@@ -318,7 +318,12 @@ function init(_ctx) {
|
||||
$("btn-receive").addEventListener("click", () => {
|
||||
const addr = currentAddress();
|
||||
const address = addr ? addr.address : "";
|
||||
$("receive-dot").innerHTML = address ? addressDotHtml(address) : "";
|
||||
$("receive-address").textContent = address;
|
||||
const link = address ? etherscanAddressLink(address) : "";
|
||||
$("receive-etherscan-link").innerHTML = link
|
||||
? `<a href="${link}" target="_blank" rel="noopener" class="inline-flex items-center">${EXT_ICON}</a>`
|
||||
: "";
|
||||
if (address) {
|
||||
QRCode.toCanvas($("receive-qr"), address, {
|
||||
width: 200,
|
||||
|
||||
Reference in New Issue
Block a user