1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

fixing some code from the comments

This commit is contained in:
Kevin Nadro
2017-05-28 01:10:32 -05:00
committed by asmsuechan
parent 0c3019b52e
commit 063e2e02bd
3 changed files with 8 additions and 14 deletions

View File

@@ -31,13 +31,9 @@ class MarkdownNoteDetail extends React.Component {
}, props.note),
isLockButtonShown: false,
isLocked: false,
fullScreen: {
status: false,
oldState: {
nd : 0,
mb : 0
}
}
fullScreen: false,
widthOfNoteDetail: 0,
widthOfMainBody: 0
}
this.dispatchTimer = null

View File

@@ -49,13 +49,9 @@ class SnippetNoteDetail extends React.Component {
}, props.note, {
snippets: props.note.snippets.map((snippet) => Object.assign({}, snippet))
}),
fullScreen: {
status: false,
oldState: {
nd : 0,
mb : 0
}
}
fullScreen: false,
widthOfNoteDetail: 0,
widthOfMainBody: 0
}
}

View File

@@ -201,6 +201,7 @@ class Main extends React.Component {
/>
{!config.isSideNavFolded &&
<div styleName={this.state.isLeftSliderFocused ? 'slider--active' : 'slider'}
id='slider-left'
style={{left: this.state.navWidth}}
onMouseDown={(e) => this.handleLeftSlideMouseDown(e)}
draggable='false'
@@ -232,6 +233,7 @@ class Main extends React.Component {
])}
/>
<div styleName={this.state.isRightSliderFocused ? 'slider-right--active' : 'slider-right'}
id='slider-right'
style={{left: this.state.listWidth - 1}}
onMouseDown={(e) => this.handleRightSlideMouseDown(e)}
draggable='false'