Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore(new-channels): item size (#2160)

teofae6e6e48f4e
diff --git a/js/app/packages/channel/Channel/ThreadList.tsx b/js/app/packages/channel/Channel/ThreadList.tsx
index 5233e55364..8c50bc3412 100644
--- a/js/app/packages/channel/Channel/ThreadList.tsx
+++ b/js/app/packages/channel/Channel/ThreadList.tsx
@@ -6,6 +6,9 @@ import {
type ScrollDirection,
} from '@core/util/scroll-intent';
+const BASE_ITEM_SIZE = 62;
+const BASE_BUFFER_SIZE = BASE_ITEM_SIZE * 10;
+
type ScrollAlignment = ScrollToIndexOpts['align'];
export type ThreadListScrollTarget =
@@ -295,6 +298,8 @@ export function ThreadList(props: ThreadListProps) {
scrollOnMount(ref);
}}
scrollRef={scrollRef}
+ itemSize={BASE_ITEM_SIZE}
+ bufferSize={BASE_BUFFER_SIZE}
data={props.keys()}
onScroll={handleScroll}
shift={props.shift?.() ?? false}