diff options
author | dan <dan.abramov@gmail.com> | 2024-01-22 23:13:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 15:13:14 -0800 |
commit | 010e94a6a9581cfec7a7a03ceb716149291b4ea0 (patch) | |
tree | 5151070db21877731cbaf47a5fc139db4facdde3 | |
parent | 21846ce52dede2d81b53fe89d27f4fe1c102737f (diff) | |
download | voidsky-010e94a6a9581cfec7a7a03ceb716149291b4ea0.tar.zst |
Fix jump when opening last post in thread (#2591)
-rw-r--r-- | src/view/com/post-thread/PostThread.tsx | 4 |
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, }} |