fix: separate header avatar from username
CI / check (push) Successful in 25s
CI / release (push) Skipped
CI / deploy (push) Successful in 45s

This commit is contained in:
Simo committed 2026-08-10 18:45:38 +02:00
1 parent 06cd0cfe42
commit 0bd2ac6707
4 files changed
+51 -10

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
import { UserAvatarThumbnail } from "@/components/shared/user-avatar-thumbnail";
interface HeaderUserIdentityProps {
figure: string;
username: string;
textColor: string;
}
export function HeaderUserIdentity({
figure,
username,
textColor,
}: HeaderUserIdentityProps) {
return (
<span className="flex items-center gap-2">
<UserAvatarThumbnail figure={figure} alt="" options={{ direction: 2 }} />
<span
className="hidden sm:inline font-semibold"
style={{ color: textColor }}
>
{username}
</span>
</span>
);
}