about summary refs log tree commit diff
path: root/src/view/com/util/error/ErrorScreen.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-04-15 10:15:30 -0700
committerGitHub <noreply@github.com>2023-04-15 10:15:30 -0700
commit91fadadb5848404bc47b69879bbc38a9011a0c62 (patch)
tree57f6b085b2a81bb33441c7107bd02b89187aec8e /src/view/com/util/error/ErrorScreen.tsx
parenta79dcd3d3890b2b705cb1e687cf0f31e109fbf74 (diff)
downloadvoidsky-91fadadb5848404bc47b69879bbc38a9011a0c62.tar.zst
Fix web home feed sizing and related issues (close #432) (#475)
* Fix web home feed sizing (close #432)

* Fix lint

* Fix positioning of profile not found error

* Fix load latest on mobile

* Fix overflow issues on mobile web (visible in postthread)

* Fix bottom pad on mobile web

* Remove old comment
Diffstat (limited to 'src/view/com/util/error/ErrorScreen.tsx')
-rw-r--r--src/view/com/util/error/ErrorScreen.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/com/util/error/ErrorScreen.tsx b/src/view/com/util/error/ErrorScreen.tsx
index 0221ea153..c66ee7903 100644
--- a/src/view/com/util/error/ErrorScreen.tsx
+++ b/src/view/com/util/error/ErrorScreen.tsx
@@ -8,6 +8,7 @@ import {Text} from '../text/Text'
 import {colors} from 'lib/styles'
 import {useTheme} from 'lib/ThemeContext'
 import {usePalette} from 'lib/hooks/usePalette'
+import {CenteredView} from '../Views'
 
 export function ErrorScreen({
   title,
@@ -25,7 +26,7 @@ export function ErrorScreen({
   const theme = useTheme()
   const pal = usePalette('error')
   return (
-    <View testID={testID} style={[styles.outer, pal.view]}>
+    <CenteredView testID={testID} style={[styles.outer, pal.view]}>
       <View style={styles.errorIconContainer}>
         <View
           style={[
@@ -72,7 +73,7 @@ export function ErrorScreen({
           </TouchableOpacity>
         </View>
       )}
-    </View>
+    </CenteredView>
   )
 }