Fixed scroll issue

zio/stable
Rahul Yadav 2024-01-07 19:47:36 +05:30 committed by GitHub
parent 454973f3cc
commit abc65a9347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 10 deletions

View File

@ -273,17 +273,24 @@ export function SettingsScreen({}: Props) {
}, []) }, [])
return ( return (
<CenteredView <View style={s.hContentRegion} testID="settingsScreen">
<SimpleViewHeader
showBackButton={isMobile}
showOnDesktop
style={[ style={[
s.hContentRegion,
pal.border, pal.border,
isTabletOrDesktop ? styles.desktopContainer : pal.viewLight, {borderBottomWidth: 1},
]} !isMobile && {borderLeftWidth: 1, borderRightWidth: 1},
testID="settingsScreen"> ]}>
<ViewHeader title={_(msg`Settings`)} showOnDesktop /> <View style={{flex: 1}}>
<Text type="title-lg" style={[pal.text, {fontWeight: 'bold'}]}>
<Trans>{_(msg`Settings`)}</Trans>
</Text>
</View>
</SimpleViewHeader>
<ScrollView <ScrollView
style={[s.hContentRegion]} style={[s.hContentRegion]}
contentContainerStyle={[isMobile && pal.viewLight, styles.noBorder]} contentContainerStyle={[isMobile && pal.viewLight]}
scrollIndicatorInsets={{right: 1}}> scrollIndicatorInsets={{right: 1}}>
<View style={styles.spacer20} /> <View style={styles.spacer20} />
{currentAccount ? ( {currentAccount ? (
@ -758,7 +765,7 @@ export function SettingsScreen({}: Props) {
</View> </View>
<View style={s.footerSpacer} /> <View style={s.footerSpacer} />
</ScrollView> </ScrollView>
</CenteredView> </View>
) )
} }