From 938861c12ec3f90f57b225464a8569f9e399688a Mon Sep 17 00:00:00 2001 From: sneak Date: Thu, 26 Feb 2026 16:00:50 +0700 Subject: [PATCH] Move USD total to its own line and add etherscan link on address page The address now sits on its own line with no other elements beside it, followed by an etherscan external link icon. The USD total value moves to a separate line below. --- src/popup/index.html | 17 ++++++++-------- src/popup/views/addressDetail.js | 33 +++++++++++++++++--------------- 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/src/popup/index.html b/src/popup/index.html index dfb693e..970870f 100644 --- a/src/popup/index.html +++ b/src/popup/index.html @@ -230,19 +230,18 @@ class="font-bold mb-1 hidden flex items-center" >
- - + +
+
diff --git a/src/popup/views/addressDetail.js b/src/popup/views/addressDetail.js index 83589ff..8cb3a03 100644 --- a/src/popup/views/addressDetail.js +++ b/src/popup/views/addressDetail.js @@ -19,6 +19,21 @@ const { updateSendBalance, renderSendTokenSelect } = require("./send"); const { log } = require("../../shared/log"); const QRCode = require("qrcode"); +const EXT_ICON = + `` + + `` + + `` + + `` + + ``; + +function etherscanAddressLink(address) { + return `https://etherscan.io/address/${address}`; +} + +function etherscanTxLink(hash) { + return `https://etherscan.io/tx/${hash}`; +} + function show() { const wallet = state.wallets[state.selectedWallet]; const addr = wallet.addresses[state.selectedAddress]; @@ -29,6 +44,9 @@ function show() { $("address-dot").innerHTML = addressDotHtml(addr.address); $("address-full").dataset.full = addr.address; $("address-full").textContent = addr.address; + const addrLink = etherscanAddressLink(addr.address); + $("address-etherscan-link").innerHTML = + `${EXT_ICON}`; $("address-usd-total").textContent = formatUsd(getAddressValueUsd(addr)); const ensEl = $("address-ens"); if (addr.ensName) { @@ -178,21 +196,6 @@ function renderTransactions(txs) { }); } -function etherscanAddressLink(address) { - return `https://etherscan.io/address/${address}`; -} - -function etherscanTxLink(hash) { - return `https://etherscan.io/tx/${hash}`; -} - -const EXT_ICON = - `` + - `` + - `` + - `` + - ``; - function copyableHtml(text, extraClass) { const cls = "underline decoration-dashed cursor-pointer" +