Skip to content

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

Merge branch 'develop'

ammarahm-eda1ad8403fe43
diff --cc apps/mobile/html/Web.bundle/site/index.css
index e3be60f8f,3a9173e4d..a63a1ea07
--- a/apps/mobile/html/Web.bundle/site/index.css
+++ b/apps/mobile/html/Web.bundle/site/index.css
@@@ -1,102 -1,78 +1,107 @@@
body {
- margin: 0px !important;
- font-family: 'Open Sans';
+ margin:0px !important;
+ overflow: visible;
+ font-family:"Open Sans";
}
- #formBox textarea {
- font-family: "Open Sans";
- font-weight: 600 !important;
- background-color: transparent;
- border: none;
- width: 100%;
- outline: none;
- resize: none;
- font-size: 32px;
- }
-
- #formBox {
- margin-block-end: 0px;
- position: relative;
- }
-
- #titlebar {
- background-color: transparent;
- padding-left: 0px;
- padding-right: 12px;
- min-height: 45px;
- display: flex;
- flex-direction: column;
- justify-content: flex-end;
- }
- #formBox > div,
- #formBox > textarea {
- word-wrap: break-word; /* make sure the div and the textarea wrap words in the same way */
- box-sizing: border-box;
- width: 100%;
- }
-
- #formBox > textarea {
- overflow: hidden;
- position: absolute;
- height: 100%;
+ .app-main {
+ overflow: visible;
+ }
- padding-top: 4px;
- padding-bottom: 5px;
- }
-
- #textCopy {
- font-family: "Open Sans";
- font-weight: 600 !important;
- font-size: 32px;
- padding-top: 4px;
- padding-bottom: 5px;
- padding-right: 0.5em;
- padding-left: 0.5em;
- }
-
- #formBox > div {
- min-height: 45px;
- }
-
- .info-bar {
- font-family: "Open Sans";
- color: gray;
- font-size: 11px;
- height: 15px;
- display: flex;
- padding-left: 14px !important;
- justify-content: space-between;
- }
+ #formBox input {
+ font-family: 'Open Sans';
+ font-weight: 600 !important;
+ background-color: transparent;
+ border: none;
+ width: 100%;
+ outline: none;
+ resize: none;
+ font-size: 25px;
+ height: 45x;
+ padding-top:0px;
+ padding-bottom:0px;
+ }
+
+ #formBox {
+ margin-block-end: 0px;
+ position: relative;
+ }
+
+ #titlebar {
+ background-color: transparent;
+ padding-left: 0px;
+ padding-right: 12px;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-end;
+ }
+ #formBox > div,
+ #formBox > input {
+ word-wrap: break-word; /* make sure the div and the textarea wrap words in the same way */
+ box-sizing: border-box;
+ width: 100%;
+ }
+
+ #titlebar input:focus {
+ outline: none;
+ }
+
+ .info-bar {
+ font-family: 'Open Sans';
+ color: gray;
+ font-size: 11.5px;
+ height: 13px;
+ display: flex;
+ padding-left: 14px !important;
+ justify-content: space-between;
+ margin-top: 0px;
+ }
+
+ .info-bar a {
+ text-decoration: none;
+ color: gray;
+ }
+
+ #infowords,
+ #infodate,
+ #infosaved {
+ font-family: 'Open Sans';
+ margin-right: 5px;
+ margin-left: 0px;
+ border-radius: 5px;
+ margin-top: 0;
+ height: 16px;
+ padding-top: 2.5px;
+ }
-.visible {
- display: inline-flex !important;
-}
+ .info-bar a {
+ text-decoration: none;
+ color: gray
+ }
+
+ #titlebar textarea:focus {
+ outline: none;
+ }
+ #infowords {
+ font-family: "Open Sans";
+ margin-right: 5px;
+ margin-left: 0px;
+ border-radius: 5;
+ margin-top: 0;
+ }
+
+ #infodate {
+ font-family: "Open Sans";
+ margin-right: 5px;
+ margin-left: 5px;
+ margin-top: 0;
+ border-radius: 5;
+ }
+
+ #infosaved {
+ font-family: "Open Sans";
+ margin-right: 5px;
+ margin-left: 5px;
+ border-radius: 5;
+ margin-top: 0;
+ }
diff --cc apps/mobile/src/provider/stores.ts
index 564ccc3ba,ea1320f3c..1f1674cb4
--- a/apps/mobile/src/provider/stores.ts
+++ b/apps/mobile/src/provider/stores.ts
@@@ -416,8 -418,11 +416,12 @@@ async function shouldShowAnnouncement(a
platform => allowedPlatforms.indexOf(platform) > -1
);
+ if (announcement.appVersion) {
+ return announcement.appVersion === APP_VERSION;
+ }
+
if (!show) return false;
+
const subStatus = PremiumService.getUser()?.subscription?.type;
show = announcement.userTypes.some(userType => {
switch (userType) {
diff --cc apps/mobile/src/views/Editor/Functions.js
index 6ba957961,aab40c4b9..7cac33560
--- a/apps/mobile/src/views/Editor/Functions.js
+++ b/apps/mobile/src/views/Editor/Functions.js
@@@ -715,30 -727,29 +720,42 @@@ const loadNoteInEditor = async (keepHis
}),
);
`
+ );
+ } else {
+ post('html', content.data);
+ }
+ if (id) {
+ db.attachments.downloadImages(id);
+ }
+
+ setColors();
+ tiny.call(
+ EditorWebView,
+ tiny.updateDateEdited(timeConverter(note.dateEdited))
);
- tiny.call(EditorWebView, tiny.updateSavingState('Saved'));
} else {
- await restoreEditorState();
+ console.log('opening in editor');
+ post('html', content.data);
}
- loadingNote = null;
- disableSaving = false;
- if (keepHistory) {
- tiny.call(EditorWebView, tiny.clearHistory);
+ if (id) {
+ db.attachments.downloadImages(id);
}
- }, 50);
+
+ setColors();
+ tiny.call(
+ EditorWebView,
+ tiny.updateDateEdited(timeConverter(note.dateEdited))
+ );
+ tiny.call(EditorWebView, tiny.updateSavingState('Saved'));
+ } else {
+ await restoreEditorState();
+ }
+ await sleep(500);
+ loadingNote = null;
+ disableSaving = false;
+ if (keepHistory) {
+ tiny.call(EditorWebView, tiny.clearHistory);
+ }
};
export async function updateNoteInEditor() {