feat: support oidc picture if available

This commit is contained in:
Aarnav Tale
2025-03-11 15:35:11 -04:00
parent 5f6460f42f
commit 9c8a2c0120
3 changed files with 15 additions and 2 deletions
+13 -2
View File
@@ -91,8 +91,19 @@ export default function Header(data: Props) {
<Link href="https://github.com/juanfont/headscale" text="Headscale" />
{data.user ? (
<Menu>
<Menu.IconButton label="User">
<CircleUser />
<Menu.IconButton
label="User"
className={cn(data.user.picture ? 'p-0' : '')}
>
{data.user.picture ? (
<img
src={data.user.picture}
alt={data.user.name}
className="w-8 h-8 rounded-full"
/>
) : (
<CircleUser />
)}
</Menu.IconButton>
<Menu.Panel
onAction={(key) => {