diff options
| author | Adam Soltys <[email protected]> | 2026-08-02 19:45:21 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-02 19:45:21 -0700 |
| commit | 49a2dd2761fa6ede9f0de4d50cdc4c1c1f731147 (patch) | |
| tree | a2c16cfaebb8edc253b7a9909767568208db6ceb /src/recipient-search.js | |
| parent | fb814232c84d2b03782869c956fee57548e6f708 (diff) | |
| download | coinosv3-49a2dd2761fa6ede9f0de4d50cdc4c1c1f731147.tar.gz coinosv3-49a2dd2761fa6ede9f0de4d50cdc4c1c1f731147.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi
Diffstat (limited to 'src/recipient-search.js')
| -rw-r--r-- | src/recipient-search.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) + '…')))); } |
