feat: add copy user ID to message author context menu

This commit is contained in:
2026-04-18 01:33:11 -04:00
parent 47ec72defd
commit 1cbcda1cc7

View File

@@ -99,7 +99,10 @@
<div class="msg-header"> <div class="msg-header">
<span <span
class="msg-author" class="msg-author"
oncontextmenu={(e) => { e.stopPropagation(); onShowMenu(e, [{ label: 'Copy username', action: () => navigator.clipboard.writeText(msg.author_username ?? sid(msg.author)) }]); }} oncontextmenu={(e) => { e.stopPropagation(); onShowMenu(e, [
{ label: 'Copy username', action: () => navigator.clipboard.writeText(msg.author_username ?? sid(msg.author)) },
{ label: 'Copy user ID', action: () => navigator.clipboard.writeText(sid(msg.author)) },
]); }}
>{msg.author_username ?? sid(msg.author)}</span> >{msg.author_username ?? sid(msg.author)}</span>
<span class="msg-time">{fmt(msg.created)}</span> <span class="msg-time">{fmt(msg.created)}</span>
</div> </div>