mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 05:40:39 +08:00
Add fallback editor font family (#209)
This commit is contained in:
parent
b8f33f9e6f
commit
68b0594597
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "marktext",
|
||||
"version": "0.9.25",
|
||||
"version": "0.10.21",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -2,8 +2,8 @@
|
||||
<div
|
||||
class="editor-wrapper"
|
||||
:class="[{ 'typewriter': typewriter, 'focus': focus, 'source': sourceCode }, theme]"
|
||||
:style="{ 'color': theme === 'dark' ? darkColor : lightColor, 'lineHeight': lineHeight, 'fontSize': fontSize,
|
||||
'font-family': editorFontFamily ? `${editorFontFamily}, sans-serif`:'sans-serif'}"
|
||||
:style="{ 'color': theme === 'dark' ? darkColor : lightColor, 'lineHeight': lineHeight, 'fontSize': fontSize,
|
||||
'font-family': editorFontFamily ? `${editorFontFamily}, ${defaultFontFamily}` : `${defaultFontFamily}`}"
|
||||
>
|
||||
<div
|
||||
ref="editor"
|
||||
@ -104,6 +104,7 @@
|
||||
])
|
||||
},
|
||||
data () {
|
||||
this.defaultFontFamily = '"Open Sans", "Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif'
|
||||
return {
|
||||
selectionChange: null,
|
||||
editor: null,
|
||||
|
Loading…
Reference in New Issue
Block a user