diff options
| author | Adam Soltys <[email protected]> | 2026-10-03 08:39:24 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-03 08:39:24 -0700 |
| commit | a6a0e1a4c86d9081ee386071bf5921608edb224b (patch) | |
| tree | d149d0783ebd17e4ebd1d55f4b577b14f60cd84b /src/features | |
| parent | d4d5a8b65dde249bc6eb27b7c120b7f5c9b238fe (diff) | |
| download | coinosv3-a6a0e1a4c86d9081ee386071bf5921608edb224b.tar.gz coinosv3-a6a0e1a4c86d9081ee386071bf5921608edb224b.zip | |
Notification rows open the post, not the actor's profile
Tapping the avatar or name in a notification row went to that person's
profile; now the whole row leads to the post it's about.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01ULQZS9MQa6iAsXnrJUD9Du
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/messages.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/features/messages.js b/src/features/messages.js index b0f4526..0a1d5f2 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -10990,11 +10990,12 @@ export function messagesFeature(ctx) { style: 'gap:10px;align-items:flex-start;padding:10px 0;cursor:pointer', onClick: (e) => { if (e.target && e.target.closest && e.target.closest('button')) return; open(); }, }, - avatar(x.actor, 'chat-avatar note-avatar'), + // the whole row opens the note: face and name aren't profile links here + avatar(x.actor, 'chat-avatar note-avatar', false), h('div', { class: 'col grow', style: 'min-width:0;gap:3px' }, h('div', { class: 'row', style: 'gap:7px;align-items:baseline;min-width:0' }, - h('span', { style: 'font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer', - onClick: (e) => { e.stopPropagation(); openProfile(x.actor); } }, displayName(x.actor)), + h('span', { style: 'font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis' }, + displayName(x.actor)), h('span', { class: 'small', style: 'min-width:0' }, notifLabel(x)), h('span', { class: 'small faint', style: 'white-space:nowrap;margin-left:auto' }, timeLabel(x.ts * 1000))), x.what === 'zap' && x.text ? h('div', { class: 'small' }, x.text) : null, |
