mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: fix font family not applied when set on editor
This commit is contained in:
@@ -39,7 +39,7 @@ declare module "@tiptap/core" {
|
||||
}
|
||||
}
|
||||
|
||||
const FONTS: Record<string, string> = {
|
||||
export const FONTS: Record<string, string> = {
|
||||
monospace: getFontConfig().fonts.monospace,
|
||||
"sans-serif": getFontConfig().fonts.body,
|
||||
serif: `Noto Serif, Times New Roman, serif`
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
|
||||
|
||||
.ProseMirror span * {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.ProseMirror {
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.ProseMirror p.is-editor-empty:first-child::before {
|
||||
color: var(--placeholder);
|
||||
content: attr(data-placeholder);
|
||||
@@ -87,6 +93,7 @@
|
||||
|
||||
.ProseMirror p {
|
||||
margin-bottom: 0px;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.ProseMirror > p[data-spacing="double"] {
|
||||
|
||||
Reference in New Issue
Block a user