mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-10 00:12:22 +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: '' });
|
expect(node).toHaveState({ list: [], currentStoryId: '' });
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should not render anything', () => {
|
it('should render an empty div', () => {
|
||||||
expect(node).toBeEmptyRender();
|
expect(node.html()).toEqual('<div></div>');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ export class CssResourcePanel extends Component<Props, State> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<div>
|
||||||
{list &&
|
{list &&
|
||||||
list.map(({ id, code, picked }) => (
|
list.map(({ id, code, picked }) => (
|
||||||
<div key={id} style={{ padding: 10 }}>
|
<div key={id} style={{ padding: 10 }}>
|
||||||
@ -98,7 +98,7 @@ export class CssResourcePanel extends Component<Props, State> {
|
|||||||
{code ? <SyntaxHighlighter language="html">{code}</SyntaxHighlighter> : null}
|
{code ? <SyntaxHighlighter language="html">{code}</SyntaxHighlighter> : null}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</Fragment>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user