TypeScript
fix(web,mobile): long links in secret requests wrap and can be copied (#26145)
Matthew Feroz9ad6c7ef8b7d
diff --git a/apps/mobile/src/features/threads/SecretRequestCard.tsx b/apps/mobile/src/features/threads/SecretRequestCard.tsxindex 4ab7a18beff..19bf52ccd48 100644--- a/apps/mobile/src/features/threads/SecretRequestCard.tsx+++ b/apps/mobile/src/features/threads/SecretRequestCard.tsx@@ -101,7 +101,9 @@ function PendingSecretRequestForm(props: {<View className="gap-1"><Text className="font-t3-bold text-base text-foreground">{item.label}</Text>{item.reason.trim() ? (- <Text className="font-sans text-sm leading-5 text-foreground-muted">{item.reason}</Text>+ <Text className="font-sans text-sm leading-5 text-foreground-muted" selectable>+ {item.reason}+ </Text>) : null}</View><TextInputdiff --git a/apps/web/src/components/chat/SecretRequestCard.tsx b/apps/web/src/components/chat/SecretRequestCard.tsxindex 50992c2edeb..510d838add2 100644--- a/apps/web/src/components/chat/SecretRequestCard.tsx+++ b/apps/web/src/components/chat/SecretRequestCard.tsx@@ -112,7 +112,9 @@ function PendingSecretRequestForm(props: {<label htmlFor={inputId} className="text-sm font-medium text-foreground">{item.label}</label>- {item.reason.trim() ? <p className="text-sm text-muted-foreground">{item.reason}</p> : null}+ {item.reason.trim() ? (+ <p className="text-sm wrap-anywhere text-muted-foreground">{item.reason}</p>+ ) : null}</div><div className="flex min-w-0 items-center gap-2"><div className="min-w-0 flex-1">