disable font scaling on fixed-height chat invite cards

thread a hasFixedHeight flag through ChatInvite.Root and its context so
the card, join button, and profile badges disable font scaling when they
live in a fixed-height container, preventing text from overflowing.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-06-05 14:41:10 +03:00
parent 96e321dfd9
commit ce7ad9b6fa
10 changed files with 42 additions and 23 deletions
@@ -23,7 +23,7 @@ export function ChatInviteEmbed({
style?: StyleProp<ViewStyle>
}) {
return (
<ChatInvite.Root code={code}>
<ChatInvite.Root code={code} hasFixedHeight>
<ChatInviteEmbedBody link={link} onOpen={onOpen} style={style} />
</ChatInvite.Root>
)