From 8d5786239837710683fec1b7b49868fb133e22cc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 9 Oct 2026 08:48:05 -0700 Subject: Profiles: the Following / Followers counts no longer flash a dash before they load — the number's place is held by an invisible stand-in and the real count fades in over it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01MgAFLnkF7KrdhuyCLMNgtL --- src/features/messages.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/features/messages.js') diff --git a/src/features/messages.js b/src/features/messages.js index 3a65725..38e533b 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -5338,10 +5338,12 @@ export function messagesFeature(ctx) { else loadFollowers(pk); render(); }; + // not known yet: an invisible stand-in holds the place, and the number + // fades in over it (no dash flashing first) const btn = (which, n, label) => h('button', { type: 'button', class: 'social-count' + (ui.profPeople === which ? ' on' : ''), 'aria-expanded': String(ui.profPeople === which), onClick: () => pick(which), - }, h('b', {}, n == null ? '–' : compactNum(n)), ' ', label); + }, h('b', { class: 'social-n' + (n == null ? ' pending' : '') }, n == null ? '0' : compactNum(n)), ' ', label); const shown = ui.npubShown === pk; return h('div', { class: 'row social-line' }, btn('following', follows, t('profFollowing')), -- cgit v1.2.3