File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 = {
You can’t perform that action at this time.
0 commit comments