mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Adjust notification HotKeyTab
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user