1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Adjust notification HotKeyTab

This commit is contained in:
Paul Rosset
2017-10-24 22:27:03 +01:00
parent 4078645958
commit 80283b5f55
2 changed files with 20 additions and 4 deletions

View File

@@ -67,10 +67,17 @@
text-align right
:global
.alert
font-size 12px
line-height 30px
padding 0 5px
float right
display inline-block
position absolute
top 60px
right 15px
font-size 14px
.success
color green
.error
color red
.group-control-leftButton
colorDefaultButton()

View File

@@ -69,6 +69,14 @@ class HotkeyTab extends React.Component {
})
}
clearMessage() {
setTimeout(() => {
this.setState({
keymapAlert: null
})
}, 3000)
}
render () {
let keymapAlert = this.state.keymapAlert
let keymapAlertElement = keymapAlert != null
@@ -76,6 +84,7 @@ class HotkeyTab extends React.Component {
{keymapAlert.message}
</p>
: null
this.clearMessage()
let { config } = this.state
return (