Fix pause icon alignment
This commit is contained in:
@@ -58,13 +58,13 @@ class Demo extends React.Component<{classes: any}, State> {
|
||||
return null
|
||||
}
|
||||
|
||||
const style = {
|
||||
const cursorStyle = {
|
||||
left: this.state.position.x + 2,
|
||||
top: this.state.position.y + 2,
|
||||
}
|
||||
|
||||
return (
|
||||
<img src="../cursor.png" style={style} className={this.props.classes.cursor} />
|
||||
<img src="../cursor.png" style={cursorStyle} className={this.props.classes.cursor} />
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -76,7 +76,7 @@ const style = (theme: Theme) => ({
|
||||
position: 'fixed' as 'fixed',
|
||||
zIndex: 1000000,
|
||||
filter: theme.palette.type === 'light' ? undefined : 'invert(100%)',
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
export default withStyles(style)(Demo)
|
||||
|
||||
Reference in New Issue
Block a user