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