authorgravatar for 1419919418@qq.comwellorbetter <1419919418@qq.com> 2026-10-10 23:02:34-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-10-11 03:02:34-03:00
log5047ee78858bfdeb254c7386e2d427d3bccb8430
tree9a8affef257b4f4546304a11078a281ed4a887ac
parentf769e01e28c80745621a699ed5ee021cc78039b6
signature Signed by PGP key B5690EEEBB952194

fix(mobile): keep Android project paths on one line (#14178)


2 files changed, 11 insertions(+), 1 deletions(-)

apps/mobile/src/components/MaterialListRow.tsx+9-1
...@@ -12,6 +12,8 @@ export function MaterialListRow({...@@ -12,6 +12,8 @@ export function MaterialListRow({
12 title,12 title,
13 titleClassName,13 titleClassName,
14 subtitle,14 subtitle,
15 subtitleNumberOfLines,
16 subtitleEllipsizeMode,
15 leading,17 leading,
16 trailing,18 trailing,
17 className,19 className,
...@@ -20,6 +22,8 @@ export function MaterialListRow({...@@ -20,6 +22,8 @@ export function MaterialListRow({
20 readonly title: string;22 readonly title: string;
21 readonly titleClassName?: string;23 readonly titleClassName?: string;
22 readonly subtitle?: string | null;24 readonly subtitle?: string | null;
25 readonly subtitleNumberOfLines?: ComponentProps<typeof AppText>["numberOfLines"];
26 readonly subtitleEllipsizeMode?: ComponentProps<typeof AppText>["ellipsizeMode"];
23 readonly leading?: ReactNode;27 readonly leading?: ReactNode;
24 readonly trailing?: ReactNode;28 readonly trailing?: ReactNode;
25}) {29}) {
...@@ -46,7 +50,11 @@ export function MaterialListRow({...@@ -46,7 +50,11 @@ export function MaterialListRow({
46 {title}50 {title}
47 </AppText>51 </AppText>
48 {subtitle ? (52 {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 >
50 {subtitle}58 {subtitle}
51 </AppText>59 </AppText>
52 ) : null}60 ) : null}
apps/mobile/src/features/threads/NewTaskRouteScreen.tsx+2
...@@ -463,6 +463,8 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara...@@ -463,6 +463,8 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
463 ? `${scope.projects.length} workspaces`463 ? `${scope.projects.length} workspaces`
464 : selectionTarget.workspaceRoot464 : selectionTarget.workspaceRoot
465 }465 }
466 subtitleNumberOfLines={1}
467 subtitleEllipsizeMode="middle"
466 disabled={reservedDestinationProject !== null}468 disabled={reservedDestinationProject !== null}
467 onPress={() => void selectProject(selectionTarget)}469 onPress={() => void selectProject(selectionTarget)}
468 leading={470 leading={