diff options
Diffstat (limited to 'src/features/messages.js')
| -rw-r--r-- | src/features/messages.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/features/messages.js b/src/features/messages.js index 41a961d..27beff9 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -1387,11 +1387,13 @@ export function messagesFeature(ctx) { profiles.set(id.pubkey, { name: merged.name || null, picture: merged.picture || null, t: Date.now() }); return true; }, - profileChip(pk) { + profileChip(pk, size) { + const big = size === 'lg'; return h('span', { - class: 'zap-chip', + class: 'zap-chip' + (big ? ' lg' : ''), onClick: (e) => { e.stopPropagation(); openProfile(pk); }, - }, avatar(pk, 'chat-avatar mini', false), h('span', { class: 'small' }, displayName(pk))); + }, avatar(pk, 'chat-avatar ' + (big ? 'chip-lg' : 'mini'), false), + h('span', { class: big ? '' : 'small' }, displayName(pk))); }, init() { if (urlInvite && !pendingLink) { |
