about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-01-22 23:13:14 +0000
committerGitHub <noreply@github.com>2024-01-22 15:13:14 -0800
commit010e94a6a9581cfec7a7a03ceb716149291b4ea0 (patch)
tree5151070db21877731cbaf47a5fc139db4facdde3 /src
parent21846ce52dede2d81b53fe89d27f4fe1c102737f (diff)
downloadvoidsky-010e94a6a9581cfec7a7a03ceb716149291b4ea0.tar.zst
Fix jump when opening last post in thread (#2591)
Diffstat (limited to 'src')
-rw-r--r--src/view/com/post-thread/PostThread.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx
index 58408e847..379fe4f99 100644
--- a/src/view/com/post-thread/PostThread.tsx
+++ b/src/view/com/post-thread/PostThread.tsx
@@ -302,8 +302,10 @@ function PostThreadLoaded({
         // -prf
         return (
           <View
+            // @ts-ignore web-only
             style={{
-              height: 400,
+              // Leave enough space below that the scroll doesn't jump
+              height: isNative ? 400 : '100vh',
               borderTopWidth: 1,
               borderColor: pal.colors.border,
             }}