Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix padding of internal editors on mobile

Ammar Ahmedb6805753286d
diff --git a/packages/editor-mobile/public/index.html b/packages/editor-mobile/public/index.html
index b4f045f94..dc393e78f 100644
--- a/packages/editor-mobile/public/index.html
+++ b/packages/editor-mobile/public/index.html
@@ -20,7 +20,7 @@
/* color: var(--nn_primary_paragraph) ## TODO: use fixed color */
}
- .ProseMirror:first-child {
+ .main-editor > .ProseMirror:first-child {
margin-top: -5px !important;
}
diff --git a/packages/editor-mobile/src/components/editor.tsx b/packages/editor-mobile/src/components/editor.tsx
index 1337842e0..8c40627de 100644
--- a/packages/editor-mobile/src/components/editor.tsx
+++ b/packages/editor-mobile/src/components/editor.tsx
@@ -774,7 +774,7 @@ const TiptapProvider = (): JSX.Element => {
return contentRef.current;
}
const editorContainer = document.createElement("div");
- editorContainer.classList.add("selectable");
+ editorContainer.classList.add("selectable", "main-editor");
editorContainer.style.flex = "1";
editorContainer.style.cursor = "text";
editorContainer.style.padding = "0px 12px";