Skip to content

Commit bc214a6

Browse files
committed
Make DebugPanel style customizable.
With this you can pass style to DebugPanel component. ```js <DebugPanel style={{maxWidth: '50%'}}> </DebugPanel> ```
1 parent b676d44 commit bc214a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/react/DebugPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default class DebugPanel {
4242

4343
render() {
4444
return (
45-
<div style={this.props.getStyle(this.props)}>
45+
<div style={{...this.props.getStyle(this.props), ...this.props.style}}>
4646
{this.props.children}
4747
</div>
4848
);

0 commit comments

Comments
 (0)