Skip to content

Commit

Permalink
fix(avatar): border-box (#1750)
Browse files Browse the repository at this point in the history
* fix(avatar): border-box

* fix(avatar): fix background-color

Co-authored-by: maxin <maxin@growingio.com>
  • Loading branch information
nnmax and maxin committed Dec 29, 2021
1 parent befbe28 commit 0511fae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Avatar = React.forwardRef<HTMLSpanElement, AvatarProps>(
if (!userName) {
return (
<span className={`${prefixCls}-default ${prefixCls}-icon`}>
<UserOutlined />
<UserOutlined color={backgroundColor} />
</span>
);
}
Expand Down
3 changes: 1 addition & 2 deletions src/avatar/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
opacity: 1;
user-select: none;
&:hover &-droppable {
width: calc(100% - 2px);
height: calc(100% - 2px);
background-color: rgba(36, 46, 89, 0.5);
border: 1px solid @gray-0;
border-radius: 100%;
Expand Down Expand Up @@ -51,6 +49,7 @@
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: 100%;
height: 100%;
text-align: center;
Expand Down

1 comment on commit 0511fae

@vercel
Copy link

@vercel vercel bot commented on 0511fae Dec 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.