This commit is contained in:
hailin 2025-03-15 21:42:08 +08:00
parent 2cff032f7f
commit fe6b89d001
1 changed files with 3 additions and 1 deletions

View File

@ -61,8 +61,10 @@ export function UserMenu({ user }: { user: UserData }) {
height={32}
/>
) : (
<div className="flex h-12 w-12 shrink-0 select-none items-center justify-center rounded-full bg-muted/50 text-xs font-medium uppercase text-muted-foreground">
<div
className="flex h-12 w-12 shrink-0 select-none items-center justify-center rounded-full bg-muted/50 text-xs font-medium uppercase text-muted-foreground"
style={{ backgroundColor: getRandomColor(user?.user_name) }}
>
{user?.user_name ? getUserInitials(user?.user_name.slice(0, 2)) : null}
</div>
)}