Center non-square avatar pictures
This commit is contained in:
parent
4b566e0a19
commit
c68d65ea0b
3 changed files with 9 additions and 0 deletions
|
@ -64,6 +64,14 @@ story.add('Avatar', () => {
|
|||
return sizes.map(size => <Avatar key={size} {...props} size={size} />);
|
||||
});
|
||||
|
||||
story.add('Wide image', () => {
|
||||
const props = createProps({
|
||||
avatarPath: '/fixtures/wide.jpg',
|
||||
});
|
||||
|
||||
return sizes.map(size => <Avatar key={size} {...props} size={size} />);
|
||||
});
|
||||
|
||||
story.add('One-word Name', () => {
|
||||
const props = createProps({
|
||||
title: 'John',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue