perf: avoid sidebar timeline virtualization churn

This commit is contained in:
777genius 2026-05-29 15:54:49 +03:00
parent 0555a5e3be
commit 889e4cc374

View file

@ -363,7 +363,7 @@ export const MessagesPanel = memo(function MessagesPanel({
// path for short lists and only switches to the windowed path once // path for short lists and only switches to the windowed path once
// the row count crosses its internal threshold. // the row count crosses its internal threshold.
virtualizationEnabled: true, virtualizationEnabled: true,
virtualizationRowThreshold: position === 'sidebar' ? 24 : undefined, virtualizationRowThreshold: position === 'sidebar' ? 48 : undefined,
}; };
}, [activeScrollContainerRef, position]); }, [activeScrollContainerRef, position]);
const handleExpandContent = useCallback(() => { const handleExpandContent = useCallback(() => {