diff options
Diffstat (limited to 'src/view/com')
-rw-r--r-- | src/view/com/auth/SplashScreen.tsx | 4 | ||||
-rw-r--r-- | src/view/com/auth/SplashScreen.web.tsx | 4 | ||||
-rw-r--r-- | src/view/com/composer/videos/SubtitleDialog.tsx | 29 |
3 files changed, 21 insertions, 16 deletions
diff --git a/src/view/com/auth/SplashScreen.tsx b/src/view/com/auth/SplashScreen.tsx index 9de36665c..220f38fdd 100644 --- a/src/view/com/auth/SplashScreen.tsx +++ b/src/view/com/auth/SplashScreen.tsx @@ -78,7 +78,9 @@ export const SplashScreen = ({ a.justify_center, a.align_center, ]}> - <AppLanguageDropdown /> + <View> + <AppLanguageDropdown /> + </View> </View> <View style={{height: insets.bottom}} /> </ErrorBoundary> diff --git a/src/view/com/auth/SplashScreen.web.tsx b/src/view/com/auth/SplashScreen.web.tsx index 30ebb391f..f3488e485 100644 --- a/src/view/com/auth/SplashScreen.web.tsx +++ b/src/view/com/auth/SplashScreen.web.tsx @@ -154,9 +154,11 @@ function Footer() { a.absolute, a.inset_0, {top: 'auto'}, - a.p_xl, + a.px_xl, + a.py_lg, a.border_t, a.flex_row, + a.align_center, a.flex_wrap, a.gap_xl, a.flex_1, diff --git a/src/view/com/composer/videos/SubtitleDialog.tsx b/src/view/com/composer/videos/SubtitleDialog.tsx index 13d1b7ce5..298e70896 100644 --- a/src/view/com/composer/videos/SubtitleDialog.tsx +++ b/src/view/com/composer/videos/SubtitleDialog.tsx @@ -1,6 +1,5 @@ import {useCallback, useState} from 'react' -import {Keyboard, StyleProp, View, ViewStyle} from 'react-native' -import RNPickerSelect from 'react-native-picker-select' +import {Keyboard, type StyleProp, View, type ViewStyle} from 'react-native' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' @@ -240,19 +239,21 @@ function SubtitleFileRow({ numberOfLines={1}> {file.name} </Text> - <RNPickerSelect - placeholder={{ - label: _(msg`Select language...`), - value: '', - }} + <select value={language} - onValueChange={handleValueChange} - items={otherLanguages.map(lang => ({ - label: `${lang.name} (${langCode(lang)})`, - value: langCode(lang), - }))} - style={{viewContainer: {maxWidth: 200, flex: 1}}} - /> + onChange={evt => handleValueChange(evt.target.value)} + style={{maxWidth: 200, flex: 1}}> + <option value="" disabled selected hidden> + {/* eslint-disable-next-line bsky-internal/avoid-unwrapped-text */} + <Trans>Select language...</Trans> + </option> + {otherLanguages.map(lang => ( + <option key={langCode(lang)} value={langCode(lang)}> + {/* eslint-disable-next-line bsky-internal/avoid-unwrapped-text */} + {`${lang.name} (${langCode(lang)})`} + </option> + ))} + </select> </View> </View> |