mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-22 17:46:56 +03:00
improved click precision
This commit is contained in:
parent
1394ea0493
commit
7ad9616777
|
@ -6,6 +6,7 @@ import grabNode from './grab-node';
|
|||
|
||||
const styles = {
|
||||
base: {
|
||||
position: 'relative',
|
||||
paddingTop: 2,
|
||||
paddingBottom: 2,
|
||||
paddingRight: 4,
|
||||
|
@ -100,15 +101,15 @@ export default class JSONArrayNode extends React.Component {
|
|||
};
|
||||
}
|
||||
return (
|
||||
<li style={containerStyle} onClick={::this.handleClick}>
|
||||
<JSONArrow theme={this.props.theme} open={this.state.expanded}/>
|
||||
<li style={containerStyle}>
|
||||
<JSONArrow theme={this.props.theme} open={this.state.expanded} onClick={::this.handleClick}/>
|
||||
<label style={{
|
||||
...styles.label,
|
||||
color: this.props.theme.base0D
|
||||
}}>
|
||||
}} onClick={::this.handleClick}>
|
||||
{this.props.keyName}:
|
||||
</label>
|
||||
<span style={spanStyle}>
|
||||
<span style={spanStyle} onClick={::this.handleClick}>
|
||||
<span style={styles.spanType}>[]</span>
|
||||
{this.getItemString()}
|
||||
</span>
|
||||
|
|
|
@ -36,6 +36,6 @@ export default class JSONArrow extends React.Component {
|
|||
...styles.open
|
||||
};
|
||||
}
|
||||
return <div style={style}/>;
|
||||
return <div style={style} onClick={this.props.onClick}/>;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ import grabNode from './grab-node';
|
|||
|
||||
const styles = {
|
||||
base: {
|
||||
position: 'relative',
|
||||
paddingTop: 2,
|
||||
paddingBottom: 2,
|
||||
paddingRight: 4,
|
||||
|
@ -102,15 +103,15 @@ export default class JSONObjectNode extends React.Component {
|
|||
};
|
||||
}
|
||||
return (
|
||||
<li style={containerStyle} onClick={::this.handleClick}>
|
||||
<JSONArrow theme={this.props.theme} open={this.state.expanded}/>
|
||||
<li style={containerStyle}>
|
||||
<JSONArrow theme={this.props.theme} open={this.state.expanded} onClick={::this.handleClick}/>
|
||||
<label style={{
|
||||
...styles.label,
|
||||
color: this.props.theme.base0D
|
||||
}}>
|
||||
}} onClick={::this.handleClick}>
|
||||
{this.props.keyName}:
|
||||
</label>
|
||||
<span style={spanStyle}>
|
||||
<span style={spanStyle} onClick={::this.handleClick}>
|
||||
<span style={styles.spanType}>{}</span>
|
||||
{this.getItemString()}
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue
Block a user