@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 21 lines 675 Bytes
Raw
1 import { THREAD_WORK_ROW_MIN_HEIGHT } from "../../lib/layout";
2 import type { ThreadFeedEntry } from "../../lib/threadActivity";
3
4 // Content-driven rows must be measured by LegendList: returning a fixed size
5 // makes the list skip native measurement entirely.
6 const TURN_FOLD_HEIGHT = 42;
7 const WORK_GROUP_TOGGLE_HEIGHT = THREAD_WORK_ROW_MIN_HEIGHT;
8
9 export function resolveThreadFeedFixedItemSize(
10 entryType: ThreadFeedEntry["type"],
11 ): number | undefined {
12 switch (entryType) {
13 case "run-fold":
14 return TURN_FOLD_HEIGHT;
15 case "work-toggle":
16 return WORK_GROUP_TOGGLE_HEIGHT;
17 case "activity-group":
18 case "message":
19 return undefined;
20 }
21 }