From 7c8f36e1d6ad922c397acf12bca77de3a6f5f113 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Tue, 7 Feb 2023 17:04:19 -0600 Subject: [PATCH] fix scroll issue --- src/views/home/discover-tab.tsx | 2 +- src/views/home/following-tab.tsx | 2 +- src/views/home/global-tab.tsx | 62 +++++++++++++++----------------- 3 files changed, 30 insertions(+), 36 deletions(-) diff --git a/src/views/home/discover-tab.tsx b/src/views/home/discover-tab.tsx index e97bb9d6a..d13263b4e 100644 --- a/src/views/home/discover-tab.tsx +++ b/src/views/home/discover-tab.tsx @@ -53,7 +53,7 @@ export const DiscoverTab = () => { const timeline = events.filter(isNote); return ( - + {timeline.map((event) => ( ))} diff --git a/src/views/home/following-tab.tsx b/src/views/home/following-tab.tsx index 897aaf6f9..902272c11 100644 --- a/src/views/home/following-tab.tsx +++ b/src/views/home/following-tab.tsx @@ -30,7 +30,7 @@ export const FollowingTab = () => { const timeline = showReplies ? events : events.filter(isNote); return ( - + Show Replies diff --git a/src/views/home/global-tab.tsx b/src/views/home/global-tab.tsx index f4901b795..267774846 100644 --- a/src/views/home/global-tab.tsx +++ b/src/views/home/global-tab.tsx @@ -32,40 +32,34 @@ export const GlobalTab = () => { const timeline = showReplies ? events : events.filter(isNote); return ( - <> - - - - - - - Show Replies - - - - {timeline.map((event) => ( - - ))} - {loading ? ( - - ) : ( - - )} + + + + + + + Show Replies + + - + {timeline.map((event) => ( + + ))} + {loading ? : } + ); };