🐛 fix: fix virtuaso minheight was null (#9055)

This commit is contained in:
Shinji-Li
2025-09-03 18:28:32 +08:00
committed by GitHub
parent 20a53cbd34
commit ef79721828
@@ -55,21 +55,21 @@ const ByTimeMode = memo(() => {
const groupContent = useCallback(
(index: number) => {
if (index === 0) return <div style={{ height: 1 }} />;
const topicGroup = groups[index];
return <TopicGroupItem {...topicGroup} />;
},
[groups],
);
// const activeIndex = topics.findIndex((topic) => topic.id === activeTopicId);
return (
<GroupedVirtuoso
groupContent={groupContent}
groupCounts={groupCounts}
itemContent={itemContent}
ref={virtuosoRef}
style={{
minHeight: groupCounts.length === 1 ? '0px' : '200px',
}}
/>
);
});