From bc2e8691fee18c7062e67d061c498bccfd28b8a5 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Sun, 8 Nov 2026 17:49:19 -0800 Subject: [PATCH] feat(mobile): show folder worktrees as cards on the sheet surface Each attached worktree is its own grouped card on the grey sheet surface, the look the phone's option sheets use, so rows read apart from the page. --- .../folder/MobileFolderSourceControlPanel.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/mobile/src/source-control/folder/MobileFolderSourceControlPanel.tsx b/mobile/src/source-control/folder/MobileFolderSourceControlPanel.tsx index a9dfa917d83..d30472976a5 100644 --- a/mobile/src/source-control/folder/MobileFolderSourceControlPanel.tsx +++ b/mobile/src/source-control/folder/MobileFolderSourceControlPanel.tsx @@ -16,7 +16,7 @@ import { useMobileTranslation } from '../../i18n/use-mobile-translation' import { useBackClaim } from '../../navigation/use-back-claim' import { useWorkspaceRouteHandoff } from '../../navigation/workspace-route-handoff' import { WorkspaceExecutionScope } from '../../navigation/workspace-route' -import { spacing } from '../../theme/mobile-theme' +import { colors, spacing } from '../../theme/mobile-theme' import { themedStyleSheet } from '../../theme/themed-styles' import { useMobileColorScheme } from '../../theme/use-mobile-color-scheme' import type { FolderListRow } from './mobile-folder-attached-worktrees' @@ -127,13 +127,14 @@ export function MobileFolderSourceControlPanel({ )} /> ) : ( + // One card per attached worktree, as desktop's cards and the phone's option sheets show them. - - {worktrees.map((worktree) => ( + {worktrees.map((worktree) => ( + - ))} - + + ))} ) const main = ( @@ -193,7 +194,11 @@ export function MobileFolderSourceControlPanel({ } const styles = themedStyleSheet(() => ({ + surface: { + backgroundColor: colors.sheetSurface + }, list: { - padding: spacing.lg + padding: spacing.lg, + gap: spacing.sm } }))