mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-05 20:41:30 +08:00
fix(KnowledgeContent): adjust VirtualList height based on item count (#4270)
This commit is contained in:
parent
2fa5922455
commit
2783c7cb7d
@ -269,7 +269,7 @@ const KnowledgeContent: FC<KnowledgeContentProps> = ({ selectedBase }) => {
|
|||||||
) : (
|
) : (
|
||||||
<VirtualList
|
<VirtualList
|
||||||
data={fileItems.reverse()}
|
data={fileItems.reverse()}
|
||||||
height={window.innerHeight - 310}
|
height={fileItems.length > 5 ? 400 : fileItems.length * 80}
|
||||||
itemHeight={80}
|
itemHeight={80}
|
||||||
itemKey="id"
|
itemKey="id"
|
||||||
styles={{
|
styles={{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user