From 8bfec51dd0eb8a4935ad62ce444f1d9d67c8105c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 4 Aug 2026 01:32:31 -0700 Subject: A quieter pen inside the address box; the header avatar stops flashing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The avatar img was recreated on every render — boot's render bursts made it flash; there is exactly one header avatar, so the node is reused until the profile actually changes. Co-Authored-By: Claude Fable 5 --- src/features/names.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/features/names.js') diff --git a/src/features/names.js b/src/features/names.js index d944957..0de6f66 100644 --- a/src/features/names.js +++ b/src/features/names.js @@ -309,13 +309,13 @@ export function namesFeature(ctx) { return h('div', { class: 'card col', style: 'align-items:center;gap:14px' }, seg, h('div', { html: qrSvg(addr) }), - h('div', { class: 'row gap6', style: 'width:100%;align-items:center' }, - h('div', { class: 'addr-box', style: 'flex:1;min-width:0;text-align:center;font-size:16px' }, addr), - // the pencil is how you change the name — right where the name is + h('div', { class: 'addr-box addr-editable', style: 'width:100%;font-size:16px' }, + addr, + // the pen is how you change the name — right where the name is h('button', { - class: 'btn-sm', title: t('namesCustom'), + class: 'addr-edit', title: t('namesCustom'), onClick: () => { ui.nameEditOpen = !ui.nameEditOpen; ui.nameClaimError = null; render(); }, - html: '', + html: '', })), ui.nameEditOpen ? h('div', { class: 'col', style: 'gap:8px;width:100%' }, h('p', { class: 'small muted', style: 'margin:0' }, t('namesCustomHow')), -- cgit v1.2.3