Merge pull request #6263 from pgoforth/defect/addon-cssresources_scrollbars

[bug] Fix for `addon-cssresources` till scrollbars are properly addressed
This commit is contained in:
Michael Shilman 2019-03-29 09:36:27 +08:00 committed by GitHub
commit 68faff4d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -55,8 +55,8 @@ describe('CSSResourcePanel', () => {
expect(node).toHaveState({ list: [], currentStoryId: '' });
});
it('should not render anything', () => {
expect(node).toBeEmptyRender();
it('should render an empty div', () => {
expect(node.html()).toEqual('<div></div>');
});
});

View File

@ -87,7 +87,7 @@ export class CssResourcePanel extends Component<Props, State> {
}
return (
<Fragment>
<div>
{list &&
list.map(({ id, code, picked }) => (
<div key={id} style={{ padding: 10 }}>
@ -98,7 +98,7 @@ export class CssResourcePanel extends Component<Props, State> {
{code ? <SyntaxHighlighter language="html">{code}</SyntaxHighlighter> : null}
</div>
))}
</Fragment>
</div>
);
}
}