Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove autofocus from alt text input (#5727)

* remove autofocus from alt text input

* open to full height

authored by

Hailey and committed by
GitHub
eaba6584 0f7cd2b7

+9 -7
+5 -4
src/view/com/composer/GifAltText.tsx
··· 1 1 import React, {useState} from 'react' 2 - import {TouchableOpacity, View} from 'react-native' 2 + import {Dimensions, TouchableOpacity, View} from 'react-native' 3 3 import {msg, Trans} from '@lingui/macro' 4 4 import {useLingui} from '@lingui/react' 5 5 ··· 9 9 EmbedPlayerParams, 10 10 parseEmbedPlayerFromUrl, 11 11 } from '#/lib/strings/embed-player' 12 - import {isAndroid} from '#/platform/detection' 12 + import {isAndroid, isWeb} from '#/platform/detection' 13 13 import {useResolveGifQuery} from '#/state/queries/resolve-link' 14 14 import {Gif} from '#/state/queries/tenor' 15 15 import {AltTextCounterWrapper} from '#/view/com/composer/AltTextCounterWrapper' ··· 107 107 control={control} 108 108 onClose={() => { 109 109 onSubmit(altTextDraft) 110 - }}> 110 + }} 111 + nativeOptions={{minHeight: Dimensions.get('window').height}}> 111 112 <Dialog.Handle /> 112 113 <AltTextInner 113 114 vendorAltText={vendorAltText} ··· 157 158 defaultValue={altText} 158 159 multiline 159 160 numberOfLines={3} 160 - autoFocus 161 + autoFocus={isWeb} 161 162 onKeyPress={({nativeEvent}) => { 162 163 if (nativeEvent.key === 'Escape') { 163 164 control.close()
+4 -3
src/view/com/composer/photos/ImageAltTextDialog.tsx
··· 1 1 import React from 'react' 2 - import {ImageStyle, useWindowDimensions, View} from 'react-native' 2 + import {Dimensions, ImageStyle, useWindowDimensions, View} from 'react-native' 3 3 import {Image} from 'expo-image' 4 4 import {msg, Trans} from '@lingui/macro' 5 5 import {useLingui} from '@lingui/react' ··· 38 38 ...image, 39 39 alt: enforceLen(altText, MAX_ALT_TEXT, true), 40 40 }) 41 - }}> 41 + }} 42 + nativeOptions={{minHeight: Dimensions.get('window').height}}> 42 43 <Dialog.Handle /> 43 44 <ImageAltTextInner 44 45 control={control} ··· 122 123 defaultValue={altText} 123 124 multiline 124 125 numberOfLines={3} 125 - autoFocus 126 + autoFocus={isWeb} 126 127 /> 127 128 </TextField.Root> 128 129 </View>