Skip to content

Commit

Permalink
allow ems in avatar-letter size
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkrives committed Apr 15, 2018
1 parent 1cf3d11 commit 35e5504
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/gob-web/components/avatar-letter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ const Wrapper = styled.div`
margin: 0;
padding: 0;
${({size = 48}) => css`
width: ${size}px;
height: ${size}px;
line-height: ${size}px;
font-size: ${size / 3 * 2}px;
${({size = '48px'}) => css`
width: ${size};
height: ${size};
line-height: ${size};
font-size: calc(${size} / 3 * 2);
border-radius: ${size}px;
border-radius: ${size};
`};
`

Expand Down

0 comments on commit 35e5504

Please sign in to comment.