mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
added fullscreen button for notes and snippets
allows user to hide the sidebars for fullscreen editing
This commit is contained in:
@@ -30,7 +30,14 @@ class MarkdownNoteDetail extends React.Component {
|
||||
content: ''
|
||||
}, props.note),
|
||||
isLockButtonShown: false,
|
||||
isLocked: false
|
||||
isLocked: false,
|
||||
fullScreen: {
|
||||
status: false,
|
||||
oldState: {
|
||||
nd : 0,
|
||||
mb : 0
|
||||
}
|
||||
}
|
||||
}
|
||||
this.dispatchTimer = null
|
||||
|
||||
|
||||
@@ -48,7 +48,15 @@ class SnippetNoteDetail extends React.Component {
|
||||
description: ''
|
||||
}, props.note, {
|
||||
snippets: props.note.snippets.map((snippet) => Object.assign({}, snippet))
|
||||
})
|
||||
}),
|
||||
fullScreen: {
|
||||
status: false,
|
||||
oldState: {
|
||||
nd : 0,
|
||||
mb : 0
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user