Skip to content

Commit 5047ee7

Browse files
authored
fix(mobile): keep Android project paths on one line (#14178)
1 parent f769e01 commit 5047ee7

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

‎apps/mobile/src/components/MaterialListRow.tsx‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export function MaterialListRow({
1212
title,
1313
titleClassName,
1414
subtitle,
15+
subtitleNumberOfLines,
16+
subtitleEllipsizeMode,
1517
leading,
1618
trailing,
1719
className,
@@ -20,6 +22,8 @@ export function MaterialListRow({
2022
readonly title: string;
2123
readonly titleClassName?: string;
2224
readonly subtitle?: string | null;
25+
readonly subtitleNumberOfLines?: ComponentProps<typeof AppText>["numberOfLines"];
26+
readonly subtitleEllipsizeMode?: ComponentProps<typeof AppText>["ellipsizeMode"];
2327
readonly leading?: ReactNode;
2428
readonly trailing?: ReactNode;
2529
}) {
@@ -46,7 +50,11 @@ export function MaterialListRow({
4650
{title}
4751
</AppText>
4852
{subtitle ? (
49-
<AppText className="text-sm text-foreground-muted" numberOfLines={2}>
53+
<AppText
54+
className="text-sm text-foreground-muted"
55+
ellipsizeMode={subtitleEllipsizeMode}
56+
numberOfLines={subtitleNumberOfLines ?? 2}
57+
>
5058
{subtitle}
5159
</AppText>
5260
) : null}

‎apps/mobile/src/features/threads/NewTaskRouteScreen.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
463463
? `${scope.projects.length} workspaces`
464464
: selectionTarget.workspaceRoot
465465
}
466+
subtitleNumberOfLines={1}
467+
subtitleEllipsizeMode="middle"
466468
disabled={reservedDestinationProject !== null}
467469
onPress={() => void selectProject(selectionTarget)}
468470
leading={

0 commit comments

Comments
 (0)