feat: disable pointer events on group message preview

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.
This commit is contained in:
Claude
2026-01-14 20:02:28 +00:00
parent f464c68bde
commit 11b8e7adf7

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"