refactor newsfeed to use react-virtuoso

This commit is contained in:
Ren Amamiya
2023-03-31 11:36:23 +07:00
parent bc61082716
commit 990bf98571
4 changed files with 104 additions and 50 deletions

View File

@@ -80,7 +80,7 @@ export const NoteBase = memo(function NoteBase({ event }: { event: any }) {
return (
<div
onClick={(e) => openThread(e)}
className="relative z-10 flex h-min min-h-min w-full select-text flex-col border-b border-zinc-800 py-5 px-3 hover:bg-black/20"
className="relative z-10 m-0 flex h-min min-h-min w-full select-text flex-col border-b border-zinc-800 py-5 px-3 hover:bg-black/20"
>
<>{getParent}</>
<div className="relative z-10 flex flex-col">