mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
add test
This commit is contained in:
@@ -506,7 +506,7 @@ export default class CodeEditor extends React.Component {
|
||||
ref='root'
|
||||
tabIndex='-1'
|
||||
style={{
|
||||
fontFamily: fontFamily.join(', '),
|
||||
fontFamily,
|
||||
fontSize: fontSize,
|
||||
width: width
|
||||
}}
|
||||
|
||||
@@ -4,6 +4,6 @@ import isString from 'lodash/isString'
|
||||
export default function normalizeEditorFontFamily (fontFamily) {
|
||||
const defaultEditorFontFamily = consts.DEFAULT_EDITOR_FONT_FAMILY
|
||||
return isString(fontFamily) && fontFamily.length > 0
|
||||
? [fontFamily].concat(defaultEditorFontFamily)
|
||||
: defaultEditorFontFamily
|
||||
? [fontFamily].concat(defaultEditorFontFamily).join(', ')
|
||||
: defaultEditorFontFamily.join(', ')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user