mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 19:42:07 +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",
|
"name": "marktext",
|
||||||
"version": "0.9.25",
|
"version": "0.10.21",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
<div
|
<div
|
||||||
class="editor-wrapper"
|
class="editor-wrapper"
|
||||||
:class="[{ 'typewriter': typewriter, 'focus': focus, 'source': sourceCode }, theme]"
|
:class="[{ 'typewriter': typewriter, 'focus': focus, 'source': sourceCode }, theme]"
|
||||||
:style="{ 'color': theme === 'dark' ? darkColor : lightColor, 'lineHeight': lineHeight, 'fontSize': fontSize,
|
:style="{ 'color': theme === 'dark' ? darkColor : lightColor, 'lineHeight': lineHeight, 'fontSize': fontSize,
|
||||||
'font-family': editorFontFamily ? `${editorFontFamily}, sans-serif`:'sans-serif'}"
|
'font-family': editorFontFamily ? `${editorFontFamily}, ${defaultFontFamily}` : `${defaultFontFamily}`}"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
ref="editor"
|
ref="editor"
|
||||||
@ -104,6 +104,7 @@
|
|||||||
])
|
])
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
|
this.defaultFontFamily = '"Open Sans", "Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif'
|
||||||
return {
|
return {
|
||||||
selectionChange: null,
|
selectionChange: null,
|
||||||
editor: null,
|
editor: null,
|
||||||
|
Loading…
Reference in New Issue
Block a user