Fix pause icon alignment

This commit is contained in:
Thomas Nordquist
2019-04-10 13:59:57 +02:00
parent c7b0400e84
commit ab8365b1f7
2 changed files with 10 additions and 5 deletions

View File

@@ -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)