fix: height of character list

This commit is contained in:
DIYgod
2023-04-27 00:23:41 +01:00
parent fb68a880f2
commit 899c7116a9
+3 -2
View File
@@ -28,8 +28,9 @@ export const CharacterList: React.FC<{
{list?.length ? (
<Virtuoso
overscan={10}
style={{ height: Infinity }}
className="h-screen"
style={{ height: flattenList.length * 64 }}
fixedItemHeight={64}
className="max-h-screen"
endReached={() => hasMore && loadMore()}
components={{
Footer: hasMore ? Loader : undefined,