fix(KnowledgeContent): adjust VirtualList height based on item count (#4270)
This commit is contained in:
parent
f20cbf31a8
commit
6d568688ed
@ -269,7 +269,7 @@ const KnowledgeContent: FC<KnowledgeContentProps> = ({ selectedBase }) => {
|
||||
) : (
|
||||
<VirtualList
|
||||
data={fileItems.reverse()}
|
||||
height={window.innerHeight - 310}
|
||||
height={fileItems.length > 5 ? 400 : fileItems.length * 80}
|
||||
itemHeight={80}
|
||||
itemKey="id"
|
||||
styles={{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user