fix: 🐛

This commit is contained in:
codytseng
2025-02-16 14:05:37 +08:00
parent 83ae874059
commit 359d2488d3
2 changed files with 6 additions and 2 deletions

View File

@@ -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
)} )}

View File

@@ -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>