Skip to content

Commit

Permalink
Merge pull request #6263 from pgoforth/defect/addon-cssresources_scro…
Browse files Browse the repository at this point in the history
…llbars

[bug] Fix for `addon-cssresources` till scrollbars are properly addressed
  • Loading branch information
shilman authored Mar 29, 2019
2 parents 66faf50 + 0f9bf9c commit 68faff4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions addons/cssresources/src/css-resource-panel.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>');
});
});

Expand Down
4 changes: 2 additions & 2 deletions addons/cssresources/src/css-resource-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}>
Expand All @@ -98,7 +98,7 @@ export class CssResourcePanel extends Component<Props, State> {
{code ? <SyntaxHighlighter language="html">{code}</SyntaxHighlighter> : null}
</div>
))}
</Fragment>
</div>
);
}
}

0 comments on commit 68faff4

Please sign in to comment.