feat: 🎨
This commit is contained in:
parent
b345e2039f
commit
ad016aba35
1 changed files with 13 additions and 4 deletions
|
|
@ -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"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue