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({
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+2
......@@ -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={