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
|
text-align right
|
||||||
:global
|
:global
|
||||||
.alert
|
.alert
|
||||||
font-size 12px
|
display inline-block
|
||||||
line-height 30px
|
position absolute
|
||||||
padding 0 5px
|
top 60px
|
||||||
float right
|
right 15px
|
||||||
|
font-size 14px
|
||||||
|
.success
|
||||||
|
color green
|
||||||
|
.error
|
||||||
|
color red
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.group-control-leftButton
|
.group-control-leftButton
|
||||||
colorDefaultButton()
|
colorDefaultButton()
|
||||||
|
|||||||
@@ -69,6 +69,14 @@ class HotkeyTab extends React.Component {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clearMessage() {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.setState({
|
||||||
|
keymapAlert: null
|
||||||
|
})
|
||||||
|
}, 3000)
|
||||||
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
let keymapAlert = this.state.keymapAlert
|
let keymapAlert = this.state.keymapAlert
|
||||||
let keymapAlertElement = keymapAlert != null
|
let keymapAlertElement = keymapAlert != null
|
||||||
@@ -76,6 +84,7 @@ class HotkeyTab extends React.Component {
|
|||||||
{keymapAlert.message}
|
{keymapAlert.message}
|
||||||
</p>
|
</p>
|
||||||
: null
|
: null
|
||||||
|
this.clearMessage()
|
||||||
let { config } = this.state
|
let { config } = this.state
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user