diff --git a/src/lib/components/ChatMain.svelte b/src/lib/components/ChatMain.svelte index cdd0705..7460932 100644 --- a/src/lib/components/ChatMain.svelte +++ b/src/lib/components/ChatMain.svelte @@ -99,7 +99,10 @@
{ 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)} {fmt(msg.created)}