mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2025-08-27 21:19:23 +00:00
use object-cover to fit non-square avatars properly in frame
This commit is contained in:
parent
39afb03570
commit
39fbc7b6c2
@ -24,7 +24,7 @@ const AvatarImage = React.forwardRef<
|
|||||||
>(({ className, ...props }, ref) => (
|
>(({ className, ...props }, ref) => (
|
||||||
<AvatarPrimitive.Image
|
<AvatarPrimitive.Image
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn("aspect-square h-full w-full object-cover", className)}
|
className={cn("aspect-square h-full w-full object-cover object-center", className)}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user