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

This commit is contained in:
2026-02-26 02:24:34 +07:00
parent c278be65ed
commit 7dba48b61d

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, 42 - Math.max(0, amountStr.length - 10));
const maxAddr = Math.max(10, 40 - Math.max(0, amountStr.length - 10));
addr.textContent = truncateMiddle(counterparty, maxAddr);
addr.title = counterparty;
const amount = document.createElement("span");