A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: fix line height not applied to paragraphs
Ammar Ahmedc8cd5a4dc806
diff --git a/packages/editor-mobile/src/components/editor.tsx b/packages/editor-mobile/src/components/editor.tsxindex 1554ecaf2..689bcd3eb 100644--- a/packages/editor-mobile/src/components/editor.tsx+++ b/packages/editor-mobile/src/components/editor.tsx@@ -882,8 +882,7 @@ const Tiptap = ({<divstyle={{- display: tab.session?.locked ? "none" : "block",- lineHeight: settings.defaultLineHeight+ display: tab.session?.locked ? "none" : "block"}}ref={contentPlaceholderRef}className="theme-scope-editor"@@ -947,6 +946,7 @@ const TiptapProvider = (): JSX.Element => {editorContainer.style.padding = "0px 16px";editorContainer.style.color = colors.primary.paragraph;editorContainer.style.fontSize = `${settings.fontSize}px`;+ editorContainer.style.lineHeight = `${settings.defaultLineHeight}`;editorContainer.style.fontFamily =getFontById(settings.fontFamily)?.font || "sans-serif";contentRef.current = editorContainer;@@ -966,8 +966,9 @@ const TiptapProvider = (): JSX.Element => {contentRef.current.style.fontSize = `${settings.fontSize}px`;contentRef.current.style.fontFamily =getFontById(settings.fontFamily)?.font || "sans-serif";+ contentRef.current.style.lineHeight = `${settings.defaultLineHeight}`;}- }, [settings.fontSize, settings.fontFamily]);+ }, [settings.fontSize, settings.fontFamily, settings.defaultLineHeight]);return <Tiptap settings={settings} getContentDiv={getContentDiv} />;};