diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-11-02 09:42:29 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-11-02 09:42:29 -0700 |
commit | b782cd0d06b0fab4fae1c2aeff04f3b3196db932 (patch) | |
tree | e545c1cb4baad923080dc56353715f10aa5689d6 | |
parent | 4e5a99d4d32f049960d6610ba8853751007ef9a1 (diff) | |
download | voidsky-b782cd0d06b0fab4fae1c2aeff04f3b3196db932.tar.zst |
Fix max-height issues
-rw-r--r-- | src/view/com/auth/login/Login.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/view/com/auth/login/Login.tsx b/src/view/com/auth/login/Login.tsx index 2e9926a56..8ec4cc812 100644 --- a/src/view/com/auth/login/Login.tsx +++ b/src/view/com/auth/login/Login.tsx @@ -29,6 +29,7 @@ import {isNetworkError} from 'lib/strings/errors' import {usePalette} from 'lib/hooks/usePalette' import {useTheme} from 'lib/ThemeContext' import {cleanError} from 'lib/strings/errors' +import {isWeb} from 'platform/detection' enum Forms { Login, @@ -203,7 +204,7 @@ const ChooseAccountForm = ({ } return ( - <ScrollView testID="chooseAccountForm"> + <ScrollView testID="chooseAccountForm" style={styles.maxHeight}> <Text type="2xl-medium" style={[pal.text, styles.groupLabel, s.mt5, s.mb10]}> @@ -991,4 +992,10 @@ const styles = StyleSheet.create({ marginRight: 5, }, dimmed: {opacity: 0.5}, + + maxHeight: { + // @ts-ignore web only -prf + maxHeight: isWeb ? '100vh' : undefined, + height: !isWeb ? '100%' : undefined, + }, }) |