signup: align "Contact support" to the right on larger displays (#10978)

This commit is contained in:
Lynx
2026-06-24 12:26:25 -05:00
committed by GitHub
parent 5b66015631
commit c909fef3f1
+22 -14
View File
@@ -3,6 +3,7 @@ import {AppState, type AppStateStatus, View} from 'react-native'
import ReactNativeDeviceAttest from 'react-native-device-attest' import ReactNativeDeviceAttest from 'react-native-device-attest'
import Animated, {FadeIn, LayoutAnimationConfig} from 'react-native-reanimated' import Animated, {FadeIn, LayoutAnimationConfig} from 'react-native-reanimated'
import {AppBskyGraphStarterpack} from '@atproto/api' import {AppBskyGraphStarterpack} from '@atproto/api'
import {tokens} from '@bsky.app/alf'
import {Trans, useLingui} from '@lingui/react/macro' import {Trans, useLingui} from '@lingui/react/macro'
import {FEEDBACK_FORM_URL} from '#/lib/constants' import {FEEDBACK_FORM_URL} from '#/lib/constants'
@@ -222,20 +223,27 @@ export function Signup({onPressBack}: {onPressBack: () => void}) {
a.align_center, a.align_center,
]}> ]}>
<AppLanguageDropdown /> <AppLanguageDropdown />
<Text <View
style={[ style={
a.flex_1, gtMobile
t.atoms.text_contrast_medium, ? [a.flex_1, a.flex, a.flex_row, a.justify_end]
!gtMobile && a.text_md, : []
]}> }>
<Trans>Having trouble?</Trans>{' '} <Text
<InlineLinkText style={[
label={l`Contact support`} t.atoms.text_contrast_medium,
to={FEEDBACK_FORM_URL({email: state.email})} !gtMobile && a.text_md,
style={[!gtMobile && a.text_md]}> {paddingInline: tokens.space.sm},
<Trans>Contact support</Trans> ]}>
</InlineLinkText> <Trans>Having trouble?</Trans>{' '}
</Text> <InlineLinkText
label={l`Contact support`}
to={FEEDBACK_FORM_URL({email: state.email})}
style={[!gtMobile && a.text_md]}>
<Trans>Contact support</Trans>
</InlineLinkText>
</Text>
</View>
</View> </View>
</View> </View>
</ScreenTransition> </ScreenTransition>