feat: disable pointer events on group message preview (#98)

Add pointer-events-none to the message preview div in GroupListViewer
to ensure clicks always pass through to the parent group item's onClick
handler. This prevents issues where clicks on the preview text (UserName
or RichText components) might not trigger group selection.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Alejandro
2026-01-14 21:04:09 +01:00
committed by GitHub
parent f464c68bde
commit 6541e06b62

View File

@@ -94,7 +94,7 @@ const GroupListItem = memo(function GroupListItem({
</div>
{/* Last message preview - hide images and event embeds */}
{lastMessageAuthor && lastMessageContent && (
<div className="text-xs text-muted-foreground truncate line-clamp-1">
<div className="text-xs text-muted-foreground truncate line-clamp-1 pointer-events-none">
<UserName
pubkey={lastMessageAuthor}
className="text-xs font-medium"