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
fix infobar ui
ammarahm-edbdeb3fd27284
diff --git a/apps/mobile/android/app/src/main/assets/listeners.js b/apps/mobile/android/app/src/main/assets/listeners.jsindex 4ba89d251..c71c0241b 100644--- a/apps/mobile/android/app/src/main/assets/listeners.js+++ b/apps/mobile/android/app/src/main/assets/listeners.js@@ -141,7 +141,7 @@ function attachEditorListeners() {break;case 'dateEdited':linfo = document.querySelector(infoBar);- info.querySelector('#infodate').innerText = value;+ info.querySelector('#infodate').innerText = value + ' - ';break;case 'saving':info = document.querySelector(infoBar);@@ -153,8 +153,8 @@ function attachEditorListeners() {setTimeout(() => {info = document.querySelector(infoBar);info.querySelector('#infowords').innerText =- editor.getText().split(' ').length + ' words';- info.querySelector('#infosaved').innerText = 'Saved';+ editor.getText().split(' ').length + ' words - ';+ info.querySelector('#infosaved').innerText = 'Saved';}, 100);break;@@ -201,8 +201,8 @@ function attachEditorListeners() {setTimeout(() => {info = document.querySelector(infoBar);info.querySelector('#infowords').innerText =- editor.getText().split(' ').length + ' words';- info.querySelector('#infosaved').innerText = 'Saved';+ editor.getText().split(' ').length + ' words - ';+ info.querySelector('#infosaved').innerText = 'Saved';document.body.scrollTop = 0; // For Safaridocument.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera@@ -264,8 +264,7 @@ function attachEditorListeners() {info = document.querySelector(infoBar);let infowords = info.querySelector('#infowords');if (infowords) {- infowords.innerText =- editor.getText().split(' ').length + ' words';+ infowords.innerText = editor.getText().split(' ').length + ' words - ';}if (deltaTimeout) {@@ -369,8 +368,8 @@ function attachMessageListener() {setTimeout(() => {info = document.querySelector(infoBar);info.querySelector('#infowords').innerText =- editor.getText().split(' ').length + ' words';- info.querySelector('#infosaved').innerText = 'Saved';+ editor.getText().split(' ').length + ' words - ';+ info.querySelector('#infosaved').innerText = 'Saved';}, 100);break;@@ -417,8 +416,8 @@ function attachMessageListener() {setTimeout(() => {info = document.querySelector(infoBar);info.querySelector('#infowords').innerText =- editor.getText().split(' ').length + ' words';- info.querySelector('#infosaved').innerText = 'Saved';+ editor.getText().split(' ').length + ' words - ';+ info.querySelector('#infosaved').innerText = 'Saved';document.body.scrollTop = 0; // For Safaridocument.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera@@ -435,5 +434,4 @@ function attachMessageListener() {break;}});-}diff --git a/apps/mobile/android/app/src/main/assets/texteditor.html b/apps/mobile/android/app/src/main/assets/texteditor.htmlindex 73b958fac..a2ccb5a05 100644--- a/apps/mobile/android/app/src/main/assets/texteditor.html+++ b/apps/mobile/android/app/src/main/assets/texteditor.html@@ -30,9 +30,7 @@</form><div class="info-bar"><p id="infowords"></p>- <p>•</p><p id="infodate"></p>- <p>•</p><p id="infosaved"></p></div>@@ -44,9 +42,7 @@<input maxlength="150" id="simpleTitleInput" placeholder="Title here"></input><div class="info-bar info-bar-alt"><p id="infowords"></p>- <p>-</p><p id="infodate"></p>- <p>-</p><p id="infosaved"></p></div></div>diff --git a/apps/mobile/html/Web.bundle/site/index.html b/apps/mobile/html/Web.bundle/site/index.htmlindex 2a2bd0dbe..61881f683 100644--- a/apps/mobile/html/Web.bundle/site/index.html+++ b/apps/mobile/html/Web.bundle/site/index.html@@ -62,9 +62,7 @@</form><div class="info-bar"><p id="infowords"></p>- <p>-</p><p id="infodate"></p>- <p>-</p><p id="infosaved"></p></div></div>@@ -74,9 +72,7 @@<input maxlength="150" id="simpleTitleInput" placeholder="Title here"></input><div class="info-bar info-bar-alt"><p id="infowords"></p>- <p>-</p><p id="infodate"></p>- <p>-</p><p id="infosaved"></p></div></div>diff --git a/apps/mobile/html/Web.bundle/site/listeners.js b/apps/mobile/html/Web.bundle/site/listeners.jsindex 2c478ec72..83754ce76 100644--- a/apps/mobile/html/Web.bundle/site/listeners.js+++ b/apps/mobile/html/Web.bundle/site/listeners.js@@ -132,7 +132,7 @@ function attachEditorListeners() {let infowords = info.querySelector('#infowords');if (infowords) {infowords.innerText =- editor.getText().split(' ').length + ' words';+ editor.getText().split(' ').length + ' words - ';}if (deltaTimeout) {@@ -223,7 +223,7 @@ function attachMessageListener() {break;case 'dateEdited':linfo = document.querySelector(infoBar);- info.querySelector('#infodate').innerText = value;+ info.querySelector('#infodate').innerText = value + " - ";break;case 'saving':info = document.querySelector(infoBar);@@ -235,7 +235,7 @@ function attachMessageListener() {setTimeout(() => {info = document.querySelector(infoBar);info.querySelector('#infowords').innerText =- editor.getText().split(' ').length + ' words';+ editor.getText().split(' ').length + ' words - ';info.querySelector('#infosaved').innerText = 'Saved';}, 100);@@ -283,7 +283,7 @@ function attachMessageListener() {setTimeout(() => {info = document.querySelector(infoBar);info.querySelector('#infowords').innerText =- editor.getText().split(' ').length + ' words';+ editor.getText().split(' ').length + ' words - ';info.querySelector('#infosaved').innerText = 'Saved';document.body.scrollTop = 0; // For Safari