Skip to content

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

fix size on ios devices with larger display

ammarahm-ed698f3a8250d3
diff --git a/apps/mobile/src/common/common.js b/apps/mobile/src/common/common.js
index 47878e981..462abf182 100755
--- a/apps/mobile/src/common/common.js
+++ b/apps/mobile/src/common/common.js
@@ -1,4 +1,4 @@
-import {Dimensions, PixelRatio, StatusBar} from 'react-native';
+import {Dimensions, PixelRatio, StatusBar, Platform} from 'react-native';
import FastStorage from 'react-native-fast-storage';
import {
eSendEvent,
@@ -104,6 +104,9 @@ const correction = (size, multiplier) => {
if (dSize > 4 && dSize <= 5.3 && pixelDensity <= 3) {
return size * 0.87;
} else if (dSize > 5.5 && dSize < 6.5 && pixelDensity <= 3) {
+ if (Platform.OS === 'ios') {
+ return size;
+ }
return size * 0.93;
} else if (dSize <= 5.7 && pixelDensity > 3) {
return size * 0.9;
@@ -122,7 +125,7 @@ const correction = (size, multiplier) => {
export const normalize = size => {
let pd = pixelDensity;
-
+ console.log(pd);
if (pd === 1 || pd < 1) {
return correction(size, 0.75);
} else if (pd > 1 && pd <= 1.5) {