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:
@@ -145,7 +145,7 @@ function renderHomeTxList(ctx) {
|
||||
const opacity = tx.isError ? " opacity:0.5;" : "";
|
||||
const ago = escapeHtml(timeAgo(tx.timestamp));
|
||||
const iso = escapeHtml(isoDate(tx.timestamp));
|
||||
html += `<div class="home-tx-row py-1 border-b border-border-light text-xs cursor-pointer hover:bg-hover" data-tx="${i}" style="${opacity}">`;
|
||||
html += `<div class="home-tx-row py-2 border-b border-border-light text-xs cursor-pointer hover:bg-hover" data-tx="${i}" style="${opacity}">`;
|
||||
html += `<div class="flex justify-between"><span class="text-muted" title="${iso}">${ago}</span><span>${dirLabel}${err}</span></div>`;
|
||||
html += `<div class="flex justify-between"><span class="flex items-center">${dot}${addrStr}</span><span>${amountStr}</span></div>`;
|
||||
html += `</div>`;
|
||||
@@ -417,7 +417,12 @@ function init(ctx) {
|
||||
}
|
||||
const addr = currentAddress();
|
||||
const address = addr ? addr.address : "";
|
||||
$("receive-dot").innerHTML = address ? addressDotHtml(address) : "";
|
||||
$("receive-address").textContent = address;
|
||||
const link = address ? `https://etherscan.io/address/${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