Skip to content

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

fix: add margin in editor on mobile

thecodrr973236676903
diff --git a/apps/web/src/common/index.js b/apps/web/src/common/index.js
index 0bd32f509..aa40abe2d 100644
--- a/apps/web/src/common/index.js
+++ b/apps/web/src/common/index.js
@@ -14,11 +14,11 @@ import { hashNavigate } from "../navigation";
export const db = new Database(StorageInterface, EventSource);
-// db.host({
-// API_HOST: "https://api.notesnook.com",
-// AUTH_HOST: "https://auth.streetwriters.co",
-// SSE_HOST: "https://events.streetwriters.co",
-// });
+db.host({
+ API_HOST: "https://api.notesnook.com",
+ AUTH_HOST: "https://auth.streetwriters.co",
+ SSE_HOST: "https://events.streetwriters.co",
+});
// db.host({
// API_HOST: "http://localhost:5264",
@@ -26,11 +26,11 @@ export const db = new Database(StorageInterface, EventSource);
// SSE_HOST: "http://localhost:7264",
// });
-db.host({
- API_HOST: "http://192.168.10.8:5264",
- AUTH_HOST: "http://192.168.10.8:8264",
- SSE_HOST: "http://192.168.10.8:7264",
-});
+// db.host({
+// API_HOST: "http://192.168.10.8:5264",
+// AUTH_HOST: "http://192.168.10.8:8264",
+// SSE_HOST: "http://192.168.10.8:7264",
+// });
export const COLORS = {
red: "#f44336",
diff --git a/apps/web/src/components/editor/index.js b/apps/web/src/components/editor/index.js
index dd7492a58..96e53f1da 100644
--- a/apps/web/src/components/editor/index.js
+++ b/apps/web/src/components/editor/index.js
@@ -61,7 +61,7 @@ function Editor(props) {
useEffect(() => {
if (contentType !== "delta" || !quillRef || !quillRef.current) return;
- console.log("session", sessionState);
+
if (sessionState === SESSION_STATES.new) {
editorstore.set((state) => (state.session.state = SESSION_STATES.stale));
const {
diff --git a/apps/web/src/components/editor/react-quill.js b/apps/web/src/components/editor/react-quill.js
index 71021acff..a4e0f48a8 100644
--- a/apps/web/src/components/editor/react-quill.js
+++ b/apps/web/src/components/editor/react-quill.js
@@ -7,7 +7,7 @@ import "quill/dist/quill.core.css";
import "./modules/betterlist";
import MarkdownShortcuts from "./modules/markdown";
import MagicUrl from "quill-magic-url";
-import { Text } from "rebass";
+import { Box, Text } from "rebass";
import QuillFocus from "./modules/focus";
import { isMobile } from "../../utils/dimensions";
import { showBuyDialog } from "../dialogs/buy-dialog";
@@ -191,13 +191,14 @@ export default class ReactQuill extends Component {
render() {
return (
- <Text
- mx={[2, 2, 0]}
- as="pre"
- sx={{ cursor: "text" }}
- onFocus={this.props.onFocus}
- id={this.props.id}
- />
+ <Box mx={[2, 2, 0]}>
+ <Text
+ as="pre"
+ sx={{ cursor: "text" }}
+ onFocus={this.props.onFocus}
+ id={this.props.id}
+ />
+ </Box>
);
}
}