Skip to content

Commit

Permalink
Merge pull request #1237 from su-narthur/patch-1
Browse files Browse the repository at this point in the history
Fix display of large components
  • Loading branch information
ndelangen authored Jul 7, 2017
2 parents d054507 + 8e89aa8 commit 14ac0ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addons/centered/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ const style = {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
overflow: 'auto',
};

const innerStyle = {
margin: 'auto',
}

export default function(storyFn) {
return <div style={style}>{storyFn()}</div>;
return <div style={style}><div style={innerStyle}>{storyFn()}</div></div>;
}

0 comments on commit 14ac0ea

Please sign in to comment.