mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-07 13:27:13 +03:00
aligned arrows as per https://github.com/gaearon/redux-devtools/pull/48#issuecomment-129563503
This commit is contained in:
parent
021e95071f
commit
b7468c33eb
|
@ -9,7 +9,7 @@ const styles = {
|
||||||
paddingTop: 2,
|
paddingTop: 2,
|
||||||
paddingBottom: 2,
|
paddingBottom: 2,
|
||||||
paddingRight: 4,
|
paddingRight: 4,
|
||||||
marginLeft: 10
|
marginLeft: 3
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
margin: 0,
|
margin: 0,
|
||||||
|
|
|
@ -9,7 +9,7 @@ const styles = {
|
||||||
paddingTop: 2,
|
paddingTop: 2,
|
||||||
paddingBottom: 2,
|
paddingBottom: 2,
|
||||||
paddingRight: 4,
|
paddingRight: 4,
|
||||||
marginLeft: 10
|
marginLeft: 3
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
margin: 0,
|
margin: 0,
|
||||||
|
|
|
@ -43,7 +43,10 @@ export default class JSONTree extends React.Component {
|
||||||
rootNode = <JSONArrayNode theme={this.props.theme} data={this.props.data} previousData={this.props.previousData} initialExpanded={true} keyName={keyName} />;
|
rootNode = <JSONArrayNode theme={this.props.theme} data={this.props.data} previousData={this.props.previousData} initialExpanded={true} keyName={keyName} />;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<ul style={styles.tree}>
|
<ul style={{
|
||||||
|
...styles.tree,
|
||||||
|
...this.props.style
|
||||||
|
}}>
|
||||||
{rootNode}
|
{rootNode}
|
||||||
</ul>
|
</ul>
|
||||||
);
|
);
|
||||||
|
|
|
@ -14,6 +14,9 @@ const styles = {
|
||||||
entry: {
|
entry: {
|
||||||
display: 'block',
|
display: 'block',
|
||||||
WebkitUserSelect: 'none'
|
WebkitUserSelect: 'none'
|
||||||
|
},
|
||||||
|
tree: {
|
||||||
|
paddingLeft: 5
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -32,7 +35,12 @@ export default class LogMonitorEntry {
|
||||||
let errorText = error;
|
let errorText = error;
|
||||||
if (!errorText) {
|
if (!errorText) {
|
||||||
try {
|
try {
|
||||||
return <JSONTree theme={this.props.theme} keyName={'state'} data={this.props.select(state)} previousData={this.props.select(this.props.previousState)}/>;
|
return <JSONTree
|
||||||
|
theme={this.props.theme}
|
||||||
|
keyName={'state'}
|
||||||
|
data={this.props.select(state)}
|
||||||
|
previousData={this.props.select(this.props.previousState)}
|
||||||
|
style={styles.tree}/>;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
errorText = 'Error selecting state.';
|
errorText = 'Error selecting state.';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user