about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRahul Yadav <52163880+rahulyadav5524@users.noreply.github.com>2024-01-07 19:47:36 +0530
committerGitHub <noreply@github.com>2024-01-07 19:47:36 +0530
commitabc65a9347835d827368cc06bf25b40eed7e5d5d (patch)
tree485b5c349890bc46a73e004f514234c361702321 /src
parent454973f3ccbf95895c80d5d7174e43c504c30da7 (diff)
downloadvoidsky-abc65a9347835d827368cc06bf25b40eed7e5d5d.tar.zst
Fixed scroll issue
Diffstat (limited to 'src')
-rw-r--r--src/view/screens/Settings.tsx27
1 files changed, 17 insertions, 10 deletions
diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx
index 11c82e6c5..56890a246 100644
--- a/src/view/screens/Settings.tsx
+++ b/src/view/screens/Settings.tsx
@@ -273,17 +273,24 @@ export function SettingsScreen({}: Props) {
   }, [])
 
   return (
-    <CenteredView
-      style={[
-        s.hContentRegion,
-        pal.border,
-        isTabletOrDesktop ? styles.desktopContainer : pal.viewLight,
-      ]}
-      testID="settingsScreen">
-      <ViewHeader title={_(msg`Settings`)} showOnDesktop />
+    <View style={s.hContentRegion} testID="settingsScreen">
+      <SimpleViewHeader
+        showBackButton={isMobile}
+        showOnDesktop
+        style={[
+          pal.border,
+          {borderBottomWidth: 1},
+          !isMobile && {borderLeftWidth: 1, borderRightWidth: 1},
+        ]}>
+        <View style={{flex: 1}}>
+          <Text type="title-lg" style={[pal.text, {fontWeight: 'bold'}]}>
+            <Trans>{_(msg`Settings`)}</Trans>
+          </Text>
+        </View>
+      </SimpleViewHeader>
       <ScrollView
         style={[s.hContentRegion]}
-        contentContainerStyle={[isMobile && pal.viewLight, styles.noBorder]}
+        contentContainerStyle={[isMobile && pal.viewLight]}
         scrollIndicatorInsets={{right: 1}}>
         <View style={styles.spacer20} />
         {currentAccount ? (
@@ -758,7 +765,7 @@ export function SettingsScreen({}: Props) {
         </View>
         <View style={s.footerSpacer} />
       </ScrollView>
-    </CenteredView>
+    </View>
   )
 }