Skip to content

Commit 6d701ab

Browse files
committed
feat(webapp): use the custom avatar icon for the profile picture placeholder
- Replace the heroicons UserCircleIcon fallback in UserProfilePhoto/UserAvatar with the custom AvatarCircleIcon, matching the account menu Profile item - Size the account button avatar to match the popover menu item icons (20px)
1 parent 26aa1be commit 6d701ab

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/webapp/app/components/UserProfilePhoto.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UserCircleIcon } from "@heroicons/react/24/solid";
1+
import { AvatarCircleIcon } from "~/assets/icons/AvatarCircleIcon";
22
import { useOptionalUser } from "~/hooks/useUser";
33
import { cn } from "~/utils/cn";
44

@@ -26,6 +26,6 @@ export function UserAvatar({
2626
/>
2727
</div>
2828
) : (
29-
<UserCircleIcon className={cn("aspect-square text-charcoal-400", className)} />
29+
<AvatarCircleIcon className={cn("aspect-square text-charcoal-400", className)} />
3030
);
3131
}

apps/webapp/app/components/navigation/SideMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ function AccountMenu({ isAdmin, isImpersonating }: { isAdmin: boolean; isImperso
10081008
<SimpleTooltip
10091009
button={
10101010
<PopoverTrigger className="group flex size-8 items-center justify-center rounded transition-colors hover:bg-charcoal-750 focus-custom">
1011-
<UserProfilePhoto className="size-6" />
1011+
<UserProfilePhoto className="size-5" />
10121012
</PopoverTrigger>
10131013
}
10141014
content="Account"

0 commit comments

Comments
 (0)