Truncate addresses by 2 chars to compensate for color dot width
Some checks failed
check / check (push) Has been cancelled

Move truncateMiddle to helpers.js for reuse. Shorten displayed addresses
by 2 characters wherever a dot is shown: home view (40 char max), tx list
(maxAddr - 2), and address detail container (40ch width).
This commit is contained in:
2026-02-26 03:29:09 +07:00
parent 138468287c
commit 166bb46149
4 changed files with 13 additions and 10 deletions

View File

@@ -207,7 +207,7 @@
<span id="address-dot"></span>
<span
id="address-full"
style="width: 42ch; max-width: 100%"
style="width: 40ch; max-width: 100%"
></span>
<span
id="address-usd-total"