Skip to content

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

mobile: fix oboarding ui on iphone

ammarahm-ed2be801ba3bdf
diff --git a/apps/mobile/app/components/auth/login.js b/apps/mobile/app/components/auth/login.js
index 9b784c9f2..cee4a77c8 100644
--- a/apps/mobile/app/components/auth/login.js
+++ b/apps/mobile/app/components/auth/login.js
@@ -94,12 +94,12 @@ export const Login = ({ changeMode }) => {
>
<View
style={{
- flex: 0.45,
+ flexGrow: 0.8,
justifyContent: "flex-end",
paddingHorizontal: 20,
backgroundColor: colors.nav,
- marginBottom: 20,
borderBottomWidth: 1,
+ marginBottom: 12,
borderBottomColor: colors.border,
alignSelf: deviceMode !== "mobile" ? "center" : undefined,
borderWidth: deviceMode !== "mobile" ? 1 : null,
@@ -156,7 +156,8 @@ export const Login = ({ changeMode }) => {
: "99.9%",
backgroundColor: colors.bg,
alignSelf: "center",
- paddingHorizontal: 20
+ paddingHorizontal: 20,
+ flexGrow: 1
}}
>
<Input
diff --git a/apps/mobile/app/components/auth/signup.js b/apps/mobile/app/components/auth/signup.js
index 56e1e6e7c..a7ab3ddb0 100644
--- a/apps/mobile/app/components/auth/signup.js
+++ b/apps/mobile/app/components/auth/signup.js
@@ -108,7 +108,7 @@ export const Signup = ({ changeMode, trial }) => {
>
<View
style={{
- flex: 0.35,
+ flexGrow: 1,
justifyContent: "flex-end",
paddingHorizontal: 20,
backgroundColor: colors.nav,
@@ -165,7 +165,7 @@ export const Signup = ({ changeMode, trial }) => {
paddingHorizontal: 20,
backgroundColor: colors.bg,
alignSelf: "center",
- flex: 0.6
+ flexGrow: 0.5
}}
>
<Input
diff --git a/apps/mobile/app/screens/settings/app-lock.js b/apps/mobile/app/screens/settings/app-lock.js
index cb33eaee8..f77e508db 100644
--- a/apps/mobile/app/screens/settings/app-lock.js
+++ b/apps/mobile/app/screens/settings/app-lock.js
@@ -130,11 +130,10 @@ const AppLock = ({ route }) => {
) : (
<View
style={{
- flex: 0.35,
+ flexGrow: 1,
justifyContent: "flex-end",
paddingHorizontal: 20,
backgroundColor: colors.nav,
- marginBottom: 20,
borderBottomWidth: 1,
borderBottomColor: colors.border,
alignSelf: deviceMode !== "mobile" ? "center" : undefined,
@@ -194,7 +193,7 @@ const AppLock = ({ route }) => {
paddingHorizontal: 12,
width: DDS.isTab && welcome ? "50%" : "100%",
alignSelf: "center",
- flex: 0.65
+ flexGrow: 1
}}
>
{modes.map((item) => (