mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
forgot this in last commit
This commit is contained in:
@@ -33,6 +33,8 @@ class Main extends React.Component {
|
||||
navWidth: config.navWidth,
|
||||
isLeftSliderFocused: false,
|
||||
fullScreen: false,
|
||||
noteDetailWidth: 0,
|
||||
mainBodyWidth: 0
|
||||
}
|
||||
|
||||
this.fullScreenEditorCode = () => this.handleFullScreenButton()
|
||||
@@ -160,11 +162,15 @@ class Main extends React.Component {
|
||||
const sliderRight = document.querySelector('#slider-right')
|
||||
const sliderLeft = document.querySelector('#slider-left')
|
||||
if (this.state.fullScreen) {
|
||||
this.state.noteDetailWidth = noteDetail.style.left
|
||||
this.state.mainBodyWidth = mainBody.style.left
|
||||
noteDetail.style.left = '0px'
|
||||
mainBody.style.left = '0px'
|
||||
sliderRight.style.display = 'none'
|
||||
sliderLeft.style.display = 'none'
|
||||
} else {
|
||||
noteDetail.style.left = this.state.noteDetailWidth
|
||||
mainBody.style.left = this.state.mainBodyWidth
|
||||
sliderRight.style.display = 'block'
|
||||
sliderLeft.style.display = 'block'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user