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: ''
|
content: ''
|
||||||
}, props.note),
|
}, props.note),
|
||||||
isLockButtonShown: false,
|
isLockButtonShown: false,
|
||||||
isLocked: false
|
isLocked: false,
|
||||||
|
fullScreen: {
|
||||||
|
status: false,
|
||||||
|
oldState: {
|
||||||
|
nd : 0,
|
||||||
|
mb : 0
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.dispatchTimer = null
|
this.dispatchTimer = null
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,15 @@ class SnippetNoteDetail extends React.Component {
|
|||||||
description: ''
|
description: ''
|
||||||
}, props.note, {
|
}, props.note, {
|
||||||
snippets: props.note.snippets.map((snippet) => Object.assign({}, snippet))
|
snippets: props.note.snippets.map((snippet) => Object.assign({}, snippet))
|
||||||
})
|
}),
|
||||||
|
fullScreen: {
|
||||||
|
status: false,
|
||||||
|
oldState: {
|
||||||
|
nd : 0,
|
||||||
|
mb : 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user