From 49a2dd2761fa6ede9f0de4d50cdc4c1c1f731147 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 2 Aug 2026 19:45:21 -0700 Subject: Identity polish: 12-char npub default names, no ellipsis, copyable npub The registrar's auto-claimed username and every npub-fallback display name use the npub's first 12 characters, shown whole (no truncation dots), and the profile page's npub gets a copy button. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi --- src/recipient-search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/recipient-search.js') diff --git a/src/recipient-search.js b/src/recipient-search.js index 5cc8315..2594488 100644 --- a/src/recipient-search.js +++ b/src/recipient-search.js @@ -157,6 +157,6 @@ export function resultRows(h, rows, onPick) { ? h('img', { class: 'chat-avatar', src: r.picture, alt: '' }) : fallbackAvatar(h, r.pk, r.name, 'chat-avatar'), h('div', { class: 'col grow', style: 'min-width:0;gap:1px' }, - h('div', { class: 'chat-name' }, r.name || (npubOf(r.pk) || '').slice(0, 14) + '…'), + h('div', { class: 'chat-name' }, r.name || (npubOf(r.pk) || '').slice(0, 12)), h('div', { class: 'muted small chat-preview' }, r.address || r.nip05 || (npubOf(r.pk) || '').slice(0, 24) + '…')))); } -- cgit v1.2.3