@devries-cameron20 / t3code Mirror · read-only / commits / e0c85a20ef
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 24, 17:45 UTC

fix(mobile): avoid double dividers between thread sections (#5391)

Co-authored-by: T3 Code Test <t3code-test@example.com>

shivam committed Aug 5, 2026 at 13:28 UTC e0c85a20ef0ec9b49ade5989a13850493036a49b
2 files changed +18 -3
apps/mobile/src/features/home/HomeScreen.tsx
+8 -1
@@ -694,7 +694,11 @@ export function HomeScreen(props: HomeScreenProps) {
694 );
695
696 const renderV2Item = useCallback(
697 - ({ item }: { readonly item: ThreadListV2ListItem }) => {
697 + ({ item, index }: { readonly item: ThreadListV2ListItem; readonly index: number }) => {
698 + const nextItem = threadListV2Items[index + 1];
699 + const showTrailingDivider =
700 + nextItem?.type === "v2-thread" ||
701 + (nextItem?.type === "v2-pending" && !nextItem.showPendingDivider);
702 if (item.type === "v2-pending") {
703 const pendingScopeKey = scopedProjectKey(
704 item.pendingTask.message.environmentId,
@@ -712,6 +716,7 @@ export function HomeScreen(props: HomeScreenProps) {
716 : null
717 }
718 showPendingDivider={item.showPendingDivider}
719 + showTrailingDivider={showTrailingDivider}
720 onSelectPendingTask={props.onSelectPendingTask}
721 onDeletePendingTask={props.onDeletePendingTask}
722 />
@@ -744,6 +749,7 @@ export function HomeScreen(props: HomeScreenProps) {
749 pinned={item.item.pinned}
750 snoozePresetMinute={nowMinute}
751 snoozeWakeLabelText={item.snoozeWakeLabelText}
752 + showTrailingDivider={showTrailingDivider}
753 project={
754 projectByKey.get(scopedProjectKey(thread.environmentId, thread.projectId)) ?? null
755 }
@@ -814,6 +820,7 @@ export function HomeScreen(props: HomeScreenProps) {
820 serverConfigs,
821 settlementEnvironmentIds,
822 snoozeEnvironmentIds,
823 + threadListV2Items,
824 threadSearchMatchByKey,
825 toggleSettledShelf,
826 toggleSnoozedShelf,
apps/mobile/src/features/threads/thread-list-v2-items.tsx
+10 -2
@@ -204,6 +204,8 @@ export const ThreadListV2PendingRow = memo(function ThreadListV2PendingRow(props
204 readonly pane?: "screen" | "sidebar";
205 /** Draws the "Pending" divider above the first queued row. */
206 readonly showPendingDivider: boolean;
207 + /** Keeps row hairlines inside a section; section headers draw their own rule. */
208 + readonly showTrailingDivider?: boolean;
209 readonly onSelectPendingTask: (pendingTask: PendingNewTask) => void;
210 readonly onDeletePendingTask: (pendingTask: PendingNewTask) => void;
211 }) {
@@ -291,7 +293,9 @@ export const ThreadListV2PendingRow = memo(function ThreadListV2PendingRow(props
293 ) : (
294 <View className="bg-screen">
295 <View className="px-5 py-2.5">{rowContent}</View>
294 - <View className="ml-5 h-px bg-border-subtle" />
296 + {props.showTrailingDivider !== false ? (
297 + <View className="ml-5 h-px bg-border-subtle" />
298 + ) : null}
299 </View>
300 )}
301 </Pressable>
@@ -327,6 +331,8 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
331 into the drawer surface, selection filled with the accent color —
332 matching the v1 sidebar rows. */
333 readonly pane?: "screen" | "sidebar";
334 + /** Keeps row hairlines inside a section; section headers draw their own rule. */
335 + readonly showTrailingDivider?: boolean;
336 /** Highlights the thread open in the detail pane (iPad split view). The
337 compact Home list never sets it — phones navigate away on select. */
338 readonly selected?: boolean;
@@ -728,7 +734,9 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
734 actions reveal behind the row. */
735 <View className="bg-screen">
736 <View className="px-5 py-2.5">{cardContent}</View>
731 - <View className="ml-5 h-px bg-border-subtle" />
737 + {props.showTrailingDivider !== false ? (
738 + <View className="ml-5 h-px bg-border-subtle" />
739 + ) : null}
740 </View>
741 )}
742 </Pressable>