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 = {
|
const styles = {
|
||||||
base: {
|
base: {
|
||||||
|
position: 'relative',
|
||||||
paddingTop: 2,
|
paddingTop: 2,
|
||||||
paddingBottom: 2,
|
paddingBottom: 2,
|
||||||
paddingRight: 4,
|
paddingRight: 4,
|
||||||
|
@ -100,15 +101,15 @@ export default class JSONArrayNode extends React.Component {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<li style={containerStyle} onClick={::this.handleClick}>
|
<li style={containerStyle}>
|
||||||
<JSONArrow theme={this.props.theme} open={this.state.expanded}/>
|
<JSONArrow theme={this.props.theme} open={this.state.expanded} onClick={::this.handleClick}/>
|
||||||
<label style={{
|
<label style={{
|
||||||
...styles.label,
|
...styles.label,
|
||||||
color: this.props.theme.base0D
|
color: this.props.theme.base0D
|
||||||
}}>
|
}} onClick={::this.handleClick}>
|
||||||
{this.props.keyName}:
|
{this.props.keyName}:
|
||||||
</label>
|
</label>
|
||||||
<span style={spanStyle}>
|
<span style={spanStyle} onClick={::this.handleClick}>
|
||||||
<span style={styles.spanType}>[]</span>
|
<span style={styles.spanType}>[]</span>
|
||||||
{this.getItemString()}
|
{this.getItemString()}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -36,6 +36,6 @@ export default class JSONArrow extends React.Component {
|
||||||
...styles.open
|
...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 = {
|
const styles = {
|
||||||
base: {
|
base: {
|
||||||
|
position: 'relative',
|
||||||
paddingTop: 2,
|
paddingTop: 2,
|
||||||
paddingBottom: 2,
|
paddingBottom: 2,
|
||||||
paddingRight: 4,
|
paddingRight: 4,
|
||||||
|
@ -102,15 +103,15 @@ export default class JSONObjectNode extends React.Component {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<li style={containerStyle} onClick={::this.handleClick}>
|
<li style={containerStyle}>
|
||||||
<JSONArrow theme={this.props.theme} open={this.state.expanded}/>
|
<JSONArrow theme={this.props.theme} open={this.state.expanded} onClick={::this.handleClick}/>
|
||||||
<label style={{
|
<label style={{
|
||||||
...styles.label,
|
...styles.label,
|
||||||
color: this.props.theme.base0D
|
color: this.props.theme.base0D
|
||||||
}}>
|
}} onClick={::this.handleClick}>
|
||||||
{this.props.keyName}:
|
{this.props.keyName}:
|
||||||
</label>
|
</label>
|
||||||
<span style={spanStyle}>
|
<span style={spanStyle} onClick={::this.handleClick}>
|
||||||
<span style={styles.spanType}>{}</span>
|
<span style={styles.spanType}>{}</span>
|
||||||
{this.getItemString()}
|
{this.getItemString()}
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user