Skip to content

Commit

Permalink
fix(bottle): remove blur process for bottle preview
Browse files Browse the repository at this point in the history
  • Loading branch information
stakbucks committed Oct 3, 2024
1 parent a62ada0 commit fc4b3f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function BottlesListItem({ bottle }: Props) {
<span>{stringifyKeywords(bottle.keyword)}</span>
</Paragraph>
</div>
<Avatar src={bottle.userImageUrl} size="sm" blur />
<Avatar src={bottle.userImageUrl} size="sm" />
</div>
</li>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { recipe } from '@vanilla-extract/recipes';
export const containerStyle = recipe({
base: {
borderRadius: '50%',
position: 'relative',
},
variants: {
size: {
Expand Down
10 changes: 1 addition & 9 deletions apps/bottle/src/components/common/avatar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,7 @@ export function Avatar({ size: _size, blur, ...props }: AvatarProps) {
return (
<div className={containerStyle({ size: _size })}>
{props.src != null ? (
<Image
priority
{...props}
alt="user profile image"
width={size}
height={size}
objectFit="cover"
className={avatarStyle({ blur })}
/>
<Image priority {...props} alt="user profile image" fill objectFit="cover" className={avatarStyle({ blur })} />
) : (
<Placeholder size={size} />
)}
Expand Down

0 comments on commit fc4b3f3

Please sign in to comment.