Skip to content

Commit

Permalink
Merge branch 'flicknow-make-choose-account-scrollable' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Nov 2, 2023
2 parents 29bfed7 + b782cd0 commit c8b9407
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/view/com/auth/login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
ActivityIndicator,
Keyboard,
KeyboardAvoidingView,
ScrollView,
StyleSheet,
TextInput,
TouchableOpacity,
Expand All @@ -28,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,
Expand Down Expand Up @@ -202,7 +204,7 @@ const ChooseAccountForm = ({
}

return (
<View testID="chooseAccountForm">
<ScrollView testID="chooseAccountForm" style={styles.maxHeight}>
<Text
type="2xl-medium"
style={[pal.text, styles.groupLabel, s.mt5, s.mb10]}>
Expand Down Expand Up @@ -267,7 +269,7 @@ const ChooseAccountForm = ({
<View style={s.flex1} />
{isProcessing && <ActivityIndicator />}
</View>
</View>
</ScrollView>
)
}

Expand Down Expand Up @@ -990,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,
},
})

0 comments on commit c8b9407

Please sign in to comment.