perf: avoid sidebar timeline virtualization churn
This commit is contained in:
parent
0555a5e3be
commit
889e4cc374
1 changed files with 1 additions and 1 deletions
|
|
@ -363,7 +363,7 @@ export const MessagesPanel = memo(function MessagesPanel({
|
|||
// path for short lists and only switches to the windowed path once
|
||||
// the row count crosses its internal threshold.
|
||||
virtualizationEnabled: true,
|
||||
virtualizationRowThreshold: position === 'sidebar' ? 24 : undefined,
|
||||
virtualizationRowThreshold: position === 'sidebar' ? 48 : undefined,
|
||||
};
|
||||
}, [activeScrollContainerRef, position]);
|
||||
const handleExpandContent = useCallback(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue