about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThread.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-04-25 20:45:59 -0500
committerGitHub <noreply@github.com>2023-04-25 20:45:59 -0500
commitae895155fd2ca317afa59066633c12e8968e9e7c (patch)
treea83e86b16f48416b800782aaae902e571b87bfaa /src/view/com/post-thread/PostThread.tsx
parent8f3915e0a595fd4cc995ad8c31fed1ea4f5c3f37 (diff)
downloadvoidsky-ae895155fd2ca317afa59066633c12e8968e9e7c.tar.zst
Fix to error screen and postthread loading state (#540)
* Fix loading state on postthread

* Improve error screen rendering

* Dark mode exclamation in error screen

* Fix lint
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r--src/view/com/post-thread/PostThread.tsx10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx
index a1e25a6ad..6e387b8d0 100644
--- a/src/view/com/post-thread/PostThread.tsx
+++ b/src/view/com/post-thread/PostThread.tsx
@@ -130,10 +130,16 @@ export const PostThread = observer(function PostThread({
 
   // loading
   // =
-  if ((view.isLoading && !view.isRefreshing) || view.params.uri !== uri) {
+  if (
+    !view.hasLoaded ||
+    (view.isLoading && !view.isRefreshing) ||
+    view.params.uri !== uri
+  ) {
     return (
       <CenteredView>
-        <ActivityIndicator />
+        <View style={s.p20}>
+          <ActivityIndicator size="large" />
+        </View>
       </CenteredView>
     )
   }