Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions browser/main/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,26 +160,29 @@ class Main extends React.Component {
handleFullScreenButton (e) {
this.setState({ fullScreen: !this.state.fullScreen }, () => {
const noteDetail = document.querySelector('.NoteDetail')
const noteList = document.querySelector('.NoteList')
const mainBody = document.querySelector('#main-body')

if (this.state.fullScreen) {
this.hideLeftLists(noteDetail, mainBody)
this.hideLeftLists(noteDetail, noteList, mainBody)
} else {
this.showLeftLists(noteDetail, mainBody)
this.showLeftLists(noteDetail, noteList, mainBody)
}
})
}

hideLeftLists (noteDetail, mainBody) {
hideLeftLists (noteDetail, noteList, mainBody) {
this.state.noteDetailWidth = noteDetail.style.left
this.state.mainBodyWidth = mainBody.style.left
noteDetail.style.left = '0px'
mainBody.style.left = '0px'
noteList.style.display = 'none'
}

showLeftLists (noteDetail, mainBody) {
showLeftLists (noteDetail, noteList, mainBody) {
noteDetail.style.left = this.state.noteDetailWidth
mainBody.style.left = this.state.mainBodyWidth
noteList.style.display = 'inline'
}

render () {
Expand Down
1 change: 0 additions & 1 deletion browser/main/Main.styl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

.body--expanded
@extend .body
z-index 100
left $sideNav--folded-width

.slider
Expand Down