Skip to content

Commit

Permalink
fix: optimize Avatar.Icon look (#817)
Browse files Browse the repository at this point in the history
* fix: optimize Avatar.Icon look

* fix: reduce icon size to 60%
  • Loading branch information
jaulz authored and Trancever committed Feb 8, 2019
1 parent beb37a2 commit baaf369
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Avatar/AvatarIcon.js
Expand Up @@ -77,7 +77,7 @@ class Avatar extends React.Component<Props> {
restStyle,
]}
>
<Icon source={icon} color={textColor} size={size / 2} />
<Icon source={icon} color={textColor} size={size * 0.6} />
</View>
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/__tests__/__snapshots__/Avatar.test.js.snap
Expand Up @@ -27,7 +27,7 @@ exports[`renders avatar with icon 1`] = `
Array [
Object {
"color": "#ffffff",
"fontSize": 32,
"fontSize": 38.4,
},
Array [
Object {
Expand Down Expand Up @@ -82,7 +82,7 @@ exports[`renders avatar with icon and custom background color 1`] = `
Array [
Object {
"color": "#ffffff",
"fontSize": 32,
"fontSize": 38.4,
},
Array [
Object {
Expand Down

0 comments on commit baaf369

Please sign in to comment.