[Chat] Disable font scaling on fixed-height chat invite cards (#10744)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-06-05 18:18:27 +03:00
committed by GitHub
parent 67ed59fbcd
commit f8aae4a192
10 changed files with 46 additions and 24 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ export function JoinButton({
onPress?: () => void
style?: StyleProp<ViewStyle>
}) {
const {action} = useChatInvite()
const {action, hasFixedHeight} = useChatInvite()
if (!action) return null
@@ -35,7 +35,7 @@ export function JoinButton({
disabled={action.disabled}
style={[a.w_full, style]}>
{action.side === 'left' && <ButtonIcon icon={action.icon} />}
<ButtonText>{action.label}</ButtonText>
<ButtonText allowFontScaling={!hasFixedHeight}>{action.label}</ButtonText>
{action.side === 'right' && <ButtonIcon icon={action.icon} />}
</Button>
)