mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
set Basefont
This commit is contained in:
@@ -152,7 +152,7 @@ export default class CodeEditor extends React.Component {
|
||||
className={this.props.className == null ? 'CodeEditor' : 'CodeEditor ' + this.props.className}
|
||||
style={{
|
||||
fontSize: this.state.fontSize,
|
||||
fontFamily: this.state.fontFamily
|
||||
fontFamily: this.state.fontFamily.trim() + ', monospace'
|
||||
}}
|
||||
/>
|
||||
)
|
||||
|
||||
@@ -183,7 +183,10 @@ export default class MarkdownPreview extends React.Component {
|
||||
onMouseMove={e => this.handleMouseMove(e)}
|
||||
onMouseUp={e => this.handleMouseUp(e)}
|
||||
dangerouslySetInnerHTML={{__html: ' ' + content}}
|
||||
style={{fontSize: this.state.fontSize, fontFamily: this.state.fontFamily}}
|
||||
style={{
|
||||
fontSize: this.state.fontSize,
|
||||
fontFamily: this.state.fontFamily.trim() + ', helvetica, arial, sans-serif'
|
||||
}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -6,11 +6,11 @@ const nodeIpc = require('@rokt33r/node-ipc')
|
||||
|
||||
const defaultConfig = {
|
||||
'editor-font-size': '14',
|
||||
'editor-font-family': 'Monaco, Ubuntu Mono, Consolas, source-code-pro, monospace',
|
||||
'editor-font-family': 'Monaco, Consolas',
|
||||
'editor-indent-type': 'space',
|
||||
'editor-indent-size': '4',
|
||||
'preview-font-size': '14',
|
||||
'preview-font-family': 'Lato, helvetica, arial, sans-serif',
|
||||
'preview-font-family': 'Lato',
|
||||
'disable-direct-write': false
|
||||
}
|
||||
const configFile = 'config.json'
|
||||
|
||||
Reference in New Issue
Block a user