Skip to content

Commit 2b6c9c2

Browse files
committed
fix(mobile): keep queued task titles readable with large text
1 parent b68a22d commit 2b6c9c2

1 file changed

Lines changed: 20 additions & 9 deletions

File tree

‎apps/mobile/src/features/threads/thread-list-v2-items.tsx‎

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@ export const ThreadListV2PendingRow = memo(function ThreadListV2PendingRow(props
464464
>
465465
{pendingTask.title}
466466
</Text>
467-
<View className="flex-row items-center gap-1" style={{ minHeight: titleLineHeight }}>
468-
{isDraft ? (
467+
{isDraft ? (
468+
<View className="flex-row items-center gap-1" style={{ minHeight: titleLineHeight }}>
469469
<SymbolView
470470
name="square.and.pencil"
471471
size={13}
@@ -477,22 +477,33 @@ export const ThreadListV2PendingRow = memo(function ThreadListV2PendingRow(props
477477
type="monochrome"
478478
weight="semibold"
479479
/>
480-
) : null}
480+
<Text
481+
className={cn(
482+
"text-xs font-t3-bold",
483+
selected
484+
? selectedThreadRowColors.foregroundClassName
485+
: "text-adaptive-amber-700-300",
486+
)}
487+
>
488+
Draft
489+
</Text>
490+
</View>
491+
) : null}
492+
</View>
493+
{!isDraft ? (
494+
<View className="mt-1" style={{ paddingLeft: titleTextInset }}>
481495
<Text
482496
className={cn(
483497
"text-xs",
484-
isDraft && "font-t3-bold",
485498
selected
486499
? selectedThreadRowColors.foregroundClassName
487-
: isDraft
488-
? "text-adaptive-amber-700-300"
489-
: rowAppearance.tertiaryForegroundClassName,
500+
: rowAppearance.tertiaryForegroundClassName,
490501
)}
491502
>
492-
{isDraft ? "Draft" : "Sends on reconnect"}
503+
Sends on reconnect
493504
</Text>
494505
</View>
495-
</View>
506+
) : null}
496507
{branch || props.environmentLabel ? (
497508
<View className="mt-1 flex-row items-center gap-1" style={{ paddingLeft: titleTextInset }}>
498509
{props.environmentLabel && props.environmentMachine ? (

0 commit comments

Comments
 (0)