mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 10:16:26 +00:00
fixing some code from the comments
This commit is contained in:
@@ -31,13 +31,9 @@ class MarkdownNoteDetail extends React.Component {
|
|||||||
}, props.note),
|
}, props.note),
|
||||||
isLockButtonShown: false,
|
isLockButtonShown: false,
|
||||||
isLocked: false,
|
isLocked: false,
|
||||||
fullScreen: {
|
fullScreen: false,
|
||||||
status: false,
|
widthOfNoteDetail: 0,
|
||||||
oldState: {
|
widthOfMainBody: 0
|
||||||
nd : 0,
|
|
||||||
mb : 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.dispatchTimer = null
|
this.dispatchTimer = null
|
||||||
|
|
||||||
|
|||||||
@@ -49,13 +49,9 @@ class SnippetNoteDetail extends React.Component {
|
|||||||
}, props.note, {
|
}, props.note, {
|
||||||
snippets: props.note.snippets.map((snippet) => Object.assign({}, snippet))
|
snippets: props.note.snippets.map((snippet) => Object.assign({}, snippet))
|
||||||
}),
|
}),
|
||||||
fullScreen: {
|
fullScreen: false,
|
||||||
status: false,
|
widthOfNoteDetail: 0,
|
||||||
oldState: {
|
widthOfMainBody: 0
|
||||||
nd : 0,
|
|
||||||
mb : 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -201,6 +201,7 @@ class Main extends React.Component {
|
|||||||
/>
|
/>
|
||||||
{!config.isSideNavFolded &&
|
{!config.isSideNavFolded &&
|
||||||
<div styleName={this.state.isLeftSliderFocused ? 'slider--active' : 'slider'}
|
<div styleName={this.state.isLeftSliderFocused ? 'slider--active' : 'slider'}
|
||||||
|
id='slider-left'
|
||||||
style={{left: this.state.navWidth}}
|
style={{left: this.state.navWidth}}
|
||||||
onMouseDown={(e) => this.handleLeftSlideMouseDown(e)}
|
onMouseDown={(e) => this.handleLeftSlideMouseDown(e)}
|
||||||
draggable='false'
|
draggable='false'
|
||||||
@@ -232,6 +233,7 @@ class Main extends React.Component {
|
|||||||
])}
|
])}
|
||||||
/>
|
/>
|
||||||
<div styleName={this.state.isRightSliderFocused ? 'slider-right--active' : 'slider-right'}
|
<div styleName={this.state.isRightSliderFocused ? 'slider-right--active' : 'slider-right'}
|
||||||
|
id='slider-right'
|
||||||
style={{left: this.state.listWidth - 1}}
|
style={{left: this.state.listWidth - 1}}
|
||||||
onMouseDown={(e) => this.handleRightSlideMouseDown(e)}
|
onMouseDown={(e) => this.handleRightSlideMouseDown(e)}
|
||||||
draggable='false'
|
draggable='false'
|
||||||
|
|||||||
Reference in New Issue
Block a user