mirror of
https://github.com/lobehub/lobe-chat.git
synced 2026-06-14 03:30:19 +00:00
🐛 fix: fix virtuaso minheight was null (#9055)
This commit is contained in:
+3
-3
@@ -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',
|
||||
}}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user