Skip to content

Commit 9ad6c7e

Browse files
authored
fix(web,mobile): long links in secret requests wrap and can be copied (#26145)
1 parent 513bfbb commit 9ad6c7e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ function PendingSecretRequestForm(props: {
101101
<View className="gap-1">
102102
<Text className="font-t3-bold text-base text-foreground">{item.label}</Text>
103103
{item.reason.trim() ? (
104-
<Text className="font-sans text-sm leading-5 text-foreground-muted">{item.reason}</Text>
104+
<Text className="font-sans text-sm leading-5 text-foreground-muted" selectable>
105+
{item.reason}
106+
</Text>
105107
) : null}
106108
</View>
107109
<TextInput

‎apps/web/src/components/chat/SecretRequestCard.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ function PendingSecretRequestForm(props: {
112112
<label htmlFor={inputId} className="text-sm font-medium text-foreground">
113113
{item.label}
114114
</label>
115-
{item.reason.trim() ? <p className="text-sm text-muted-foreground">{item.reason}</p> : null}
115+
{item.reason.trim() ? (
116+
<p className="text-sm wrap-anywhere text-muted-foreground">{item.reason}</p>
117+
) : null}
116118
</div>
117119
<div className="flex min-w-0 items-center gap-2">
118120
<div className="min-w-0 flex-1">

0 commit comments

Comments
 (0)