Skip to content

Commit

Permalink
fix: 🐛 Fixed bug on avatars, where if the image is not square it will…
Browse files Browse the repository at this point in the history
… look squashed, using object-cover should fix that
  • Loading branch information
BurnedChris committed Nov 26, 2024
1 parent 6b92fb7 commit 0afac88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/components/ui/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const AvatarImage = React.forwardRef<
>(({ className, ...props }, ref) => (
<AvatarPrimitive.Image
ref={ref}
className={cn("aspect-square h-full w-full", className)}
className={cn("object-cover w-full h-full", className)}
{...props}
/>
));
Expand Down

0 comments on commit 0afac88

Please sign in to comment.