Skip to content

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

fix update dialog has button hidden behind screen if content too large

ammarahm-ed6bd5f84e347d
diff --git a/apps/mobile/src/components/Update/index.js b/apps/mobile/src/components/Update/index.js
index 23f338aa6..e86ec01a0 100644
--- a/apps/mobile/src/components/Update/index.js
+++ b/apps/mobile/src/components/Update/index.js
@@ -1,5 +1,5 @@
import React from 'react';
-import { Linking, View } from 'react-native';
+import { Linking, useWindowDimensions, View } from 'react-native';
import { ScrollView } from 'react-native-gesture-handler';
import { useTracked } from '../../provider';
import { STORE_LINK } from '../../utils';
@@ -27,7 +27,8 @@ export const Update = ({ version, fwdRef }) => {
alignSelf: 'center',
alignItems: 'center',
width: '100%',
- paddingHorizontal: 12
+ paddingHorizontal: 12,
+ maxHeight: '96%'
}}
>
<View
@@ -56,8 +57,7 @@ export const Update = ({ version, fwdRef }) => {
fwdRef?.current?.handleChildScrollEnd();
}}
style={{
- width: '100%',
- maxHeight: 500
+ width: '100%'
}}
>
<Heading size={SIZE.md}>Release notes:</Heading>