Skip to content

Commit

Permalink
fix(bottle): disable image drag
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Nov 3, 2024
1 parent c3d9e8d commit 0712b23
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion apps/bottle/src/components/common/avatar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,20 @@ export function Avatar({ size: _size, blur, ...props }: AvatarProps) {
return (
<div className={containerStyle({ size: _size })}>
{props.src != null ? (
<Image priority {...props} alt="user profile image" fill objectFit="cover" className={avatarStyle({ blur })} />
<>
<Image
priority
{...props}
alt="user profile image"
fill
objectFit="cover"
className={avatarStyle({ blur })}
/>
<div
aria-hidden
style={{ width: '100%', height: '100%', position: 'absolute', top: 0, left: 0, zIndex: 2 }}
/>
</>
) : (
<Placeholder size={size} />
)}
Expand Down

0 comments on commit 0712b23

Please sign in to comment.