Skip to content

Commit

Permalink
chore: Added x48 avatar size (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh authored Mar 16, 2020
1 parent 834b22e commit b69d700
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/fuselage/src/components/Avatar/stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Avatar, Margins } from '../..';
<Preview>
<Story name='Default'>
<Margins all='x16'>
{['x2', 'x4', 'x8', 'x12', 'x16', 'x20', 'x24', 'x28', 'x32', 'x36', 'x40'].map((size, i) =>
{['x2', 'x4', 'x8', 'x12', 'x16', 'x20', 'x24', 'x28', 'x32', 'x36', 'x40', 'x48'].map((size, i) =>
<Avatar
url='data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC
4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj
Expand Down
5 changes: 5 additions & 0 deletions packages/fuselage/src/components/Avatar/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@
}

@include use-size-modifier;

&--size-x48 {
width: calc(#{$spaces-x40} + #{$spaces-x8});
height: calc(#{$spaces-x40} + #{$spaces-x8});
}
}

0 comments on commit b69d700

Please sign in to comment.