Skip to content

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

fix topic not adding

ammarahm-edd6fad823441d
diff --git a/apps/mobile/html/Web.bundle/site/index.html b/apps/mobile/html/Web.bundle/site/index.html
index 95ed1a0c1..169eb5d1a 100644
--- a/apps/mobile/html/Web.bundle/site/index.html
+++ b/apps/mobile/html/Web.bundle/site/index.html
@@ -6,6 +6,7 @@
<style>
.app-body {
margin: 0px;
+ overflow:hidden;
}
.floating-toolbar {
@@ -1055,7 +1056,7 @@
#titlebar input {
font-family: "DM Serif Text", sans-serif;
font-weight: 400 !important;
- width: 100vw;
+ width: 100%;
background-color: transparent;
border: none;
height: 50;
@@ -1619,16 +1620,15 @@
break;
case "nomenu":
let isenabled = value;
- let width = window.innerWidth;
let titleIn = document.getElementById('titlebar');
if (isenabled) {
- titleIn.style.width = width - 72;
- titleIn.style['margin-left'] = 12;
- titleIn.style['margin-right'] = 60;
+
+ titleIn.style['padding-left'] = 12;
+ titleIn.style['padding-right'] = 60;
} else {
- titleIn.style.width = width - 120;
- titleIn.style['margin-left'] = 60;
- titleIn.style['margin-right'] = 60;
+
+ titleIn.style['padding-left'] = 60;
+ titleIn.style['padding-right'] = 60;
}
break;
case "title":
diff --git a/apps/mobile/src/components/AddNotebookDialog/index.js b/apps/mobile/src/components/AddNotebookDialog/index.js
index 9d7bdf15b..6bdae9ebd 100644
--- a/apps/mobile/src/components/AddNotebookDialog/index.js
+++ b/apps/mobile/src/components/AddNotebookDialog/index.js
@@ -113,12 +113,20 @@ export class AddNotebookDialog extends React.Component {
addNewNotebook = async () => {
setTimeout(async () => {
let {topics} = this.state;
+ let edit = this.props.toEdit;
- let toEdit = db.notebooks.notebook(this.props.toEdit.id).data;
+ console.log(this.title, "ELO");
if (!this.title || this.title.trim().length === 0)
return ToastEvent.show('Title is required', 'error', 'local');
- let id = toEdit && toEdit.id ? toEdit.id : null;
+ let id = edit && edit.id ? edit.id : null;
+
+ let toEdit;
+ if (id) {
+ toEdit = db.notebooks.notebook(edit.id).data;
+ }
+
+
let prevTopics = [...topics];
if (