1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Mobile: Fixes #6759: Fix default font in beta editor (#6760)

This commit is contained in:
Henry Heino
2022-08-18 03:43:54 -07:00
committed by GitHub
parent b4aa418276
commit 78f72f33e6

View File

@@ -38,8 +38,8 @@ interface Props {
}
function fontFamilyFromSettings() {
const f = editorFont(Setting.value('style.editor.fontFamily'));
return [f, 'sans-serif'].join(', ');
const font = editorFont(Setting.value('style.editor.fontFamily'));
return font ? `${font}, sans-serif` : 'sans-serif';
}
function useCss(themeId: number): string {