mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
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:
commit
68faff4d77
@ -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>');
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user