feat: 🎨

This commit is contained in:
codytseng 2025-11-30 11:50:43 +08:00
parent b345e2039f
commit ad016aba35

View file

@ -420,22 +420,31 @@ function UserAggregationItem({
onClick={onClick} onClick={onClick}
> >
{supportTouch ? ( {supportTouch ? (
<SimpleUserAvatar userId={aggregation.pubkey} /> <SimpleUserAvatar
userId={aggregation.pubkey}
className={!hasNewEvents ? 'grayscale' : ''}
/>
) : ( ) : (
<UserAvatar userId={aggregation.pubkey} /> <UserAvatar userId={aggregation.pubkey} className={!hasNewEvents ? 'grayscale' : ''} />
)} )}
<div className="flex-1 min-w-0 flex flex-col"> <div className="flex-1 min-w-0 flex flex-col">
{supportTouch ? ( {supportTouch ? (
<SimpleUsername <SimpleUsername
userId={aggregation.pubkey} userId={aggregation.pubkey}
className="font-semibold text-base truncate max-w-fit" className={cn(
'font-semibold text-base truncate max-w-fit',
!hasNewEvents && 'text-muted-foreground'
)}
skeletonClassName="h-4" skeletonClassName="h-4"
/> />
) : ( ) : (
<Username <Username
userId={aggregation.pubkey} userId={aggregation.pubkey}
className="font-semibold text-base truncate max-w-fit" className={cn(
'font-semibold text-base truncate max-w-fit',
!hasNewEvents && 'text-muted-foreground'
)}
skeletonClassName="h-4" skeletonClassName="h-4"
/> />
)} )}