fix avator show n plaza
This commit is contained in:
parent
c4545bfc84
commit
33b1c87dea
@ -5,18 +5,18 @@ import { useTranslations } from 'next-intl'
|
|||||||
import { useAuth } from '@/hooks/useAuth'
|
import { useAuth } from '@/hooks/useAuth'
|
||||||
import { Button } from '@/components/ui/button'
|
import { Button } from '@/components/ui/button'
|
||||||
import { Badge } from '@/components/ui/badge'
|
import { Badge } from '@/components/ui/badge'
|
||||||
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
|
import { LegacyAvatar } from '@/components/ui/avatar'
|
||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
CardContent,
|
CardContent,
|
||||||
CardDescription,
|
CardDescription,
|
||||||
CardHeader,
|
CardHeader,
|
||||||
CardTitle
|
CardTitle
|
||||||
} from '@/components/ui/card'
|
} from '@/components/ui/card'
|
||||||
import {
|
import {
|
||||||
Copy,
|
Copy,
|
||||||
Download,
|
Download,
|
||||||
Eye,
|
Eye,
|
||||||
Calendar,
|
Calendar,
|
||||||
Check
|
Check
|
||||||
} from 'lucide-react'
|
} from 'lucide-react'
|
||||||
@ -230,16 +230,13 @@ export function PromptCard({ prompt, onViewIncrement }: PromptCardProps) {
|
|||||||
|
|
||||||
{/* Author & Meta */}
|
{/* Author & Meta */}
|
||||||
<div className="flex items-center justify-between text-xs text-muted-foreground">
|
<div className="flex items-center justify-between text-xs text-muted-foreground">
|
||||||
<div className="flex items-center space-x-2 min-w-0">
|
<div className="flex items-center gap-2 min-w-0 flex-shrink-0">
|
||||||
<Avatar className="h-6 w-6 shrink-0">
|
<LegacyAvatar
|
||||||
<AvatarImage
|
src={prompt.user.avatar || undefined}
|
||||||
src={prompt.user.avatar || undefined}
|
alt={prompt.user.username || 'User'}
|
||||||
alt={prompt.user.username || 'User'}
|
size={24}
|
||||||
/>
|
className="w-6 h-6"
|
||||||
<AvatarFallback className="text-xs">
|
/>
|
||||||
{prompt.user.username?.[0]?.toUpperCase() || 'U'}
|
|
||||||
</AvatarFallback>
|
|
||||||
</Avatar>
|
|
||||||
<span className="truncate max-w-[100px]">
|
<span className="truncate max-w-[100px]">
|
||||||
{prompt.user.username || 'Anonymous'}
|
{prompt.user.username || 'Anonymous'}
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user