Shorten truncated address by 2 more chars to prevent wrapping
All checks were successful
check / check (push) Successful in 13s

This commit is contained in:
2026-02-26 02:25:20 +07:00
parent 7dba48b61d
commit 9c80dbccf4

View File

@@ -127,7 +127,7 @@ function renderTransactions(txs) {
line2.className = "flex justify-between";
const addr = document.createElement("span");
addr.className = "pr-2";
const maxAddr = Math.max(10, 40 - Math.max(0, amountStr.length - 10));
const maxAddr = Math.max(10, 38 - Math.max(0, amountStr.length - 10));
addr.textContent = truncateMiddle(counterparty, maxAddr);
addr.title = counterparty;
const amount = document.createElement("span");