Skip to content

Commit

Permalink
Avatar should keep the image ratio and just cover the container
Browse files Browse the repository at this point in the history
  • Loading branch information
e-hosseini authored Jan 28, 2025
1 parent c8c4027 commit 248369f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/www/registry/default/ui/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const AvatarImage = React.forwardRef<
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Image
ref={ref}
className={cn("aspect-square h-full w-full", className)}
className={cn("aspect-square h-full w-full object-cover", className)}
{...props}
/>
))
Expand Down

0 comments on commit 248369f

Please sign in to comment.