Browse Source

fix: 🐛

imwald
codytseng 1 year ago
parent
commit
359d2488d3
  1. 2
      src/components/Image/index.tsx
  2. 6
      src/components/UserItem/index.tsx

2
src/components/Image/index.tsx

@ -55,7 +55,7 @@ export default function Image({
src={url} src={url}
alt={alt} alt={alt}
className={cn( className={cn(
'object-cover transition-opacity duration-300 w-full h-full', 'object-cover transition-opacity duration-300',
isLoading ? 'opacity-0' : 'opacity-100', isLoading ? 'opacity-0' : 'opacity-100',
className className
)} )}

6
src/components/UserItem/index.tsx

@ -11,7 +11,11 @@ export default function UserItem({ pubkey }: { pubkey: string }) {
<div className="flex gap-2 items-start"> <div className="flex gap-2 items-start">
<UserAvatar userId={pubkey} className="shrink-0" /> <UserAvatar userId={pubkey} className="shrink-0" />
<div className="w-full overflow-hidden"> <div className="w-full overflow-hidden">
<Username userId={pubkey} className="font-semibold truncate" skeletonClassName="h-4" /> <Username
userId={pubkey}
className="font-semibold truncate max-w-full w-fit"
skeletonClassName="h-4"
/>
<Nip05 pubkey={pubkey} /> <Nip05 pubkey={pubkey} />
<div className="truncate text-muted-foreground text-sm">{profile?.about}</div> <div className="truncate text-muted-foreground text-sm">{profile?.about}</div>
</div> </div>

Loading…
Cancel
Save