Skip to content

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

fix editor horizontal scrolling

ammarahm-edccedc87b0b08
diff --git a/apps/mobile/android/app/src/main/assets/texteditor.html b/apps/mobile/android/app/src/main/assets/texteditor.html
index 471f964b0..8230aae1c 100644
--- a/apps/mobile/android/app/src/main/assets/texteditor.html
+++ b/apps/mobile/android/app/src/main/assets/texteditor.html
@@ -1359,7 +1359,7 @@ document.addEventListener('message', data => {
- titleIn.style.width = width - 60;
+ titleIn.style.width = width - 72;
titleIn.style['margin-left'] = 12;
titleIn.style['margin-right'] = 60;
} else {
diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.js
index 8344702dc..0940ee8f3 100755
--- a/apps/mobile/src/views/Editor/index.js
+++ b/apps/mobile/src/views/Editor/index.js
@@ -417,7 +417,7 @@ const Editor = ({navigation, noMenu}) => {
cacheEnabled={false}
domStorageEnabled
scrollEnabled={false}
- bounces={true}
+ bounces={false}
allowFileAccess={true}
scalesPageToFit={true}
allowFileAccessFromFileURLs={true}
@@ -427,8 +427,8 @@ const Editor = ({navigation, noMenu}) => {
Platform.OS === 'ios'
? sourceUri
: {
- uri: 'file:///android_asset/texteditor.html',
- baseUrl: 'file:///android_asset/',
+ uri: 'http://192.168.10.7:8080/texteditor.html',
+ baseUrl: 'http://192.168.10.7:8080',
}
}
style={{