Fix search input bar wasn't visible on android

This commit is contained in:
Clément Le Bihan
2024-01-15 00:38:53 +01:00
parent 234335cf61
commit 10dbfda8a4
2 changed files with 17 additions and 19 deletions

View File

@@ -66,13 +66,13 @@ const SearchBarComponent = (props: { onValidate: (searchData: searchProps) => vo
borderBottomColor: '#9E9E9E',
display: 'flex',
flexDirection: isMobileView ? 'column' : 'row',
maxWidth: '100%',
width: '100%',
margin: 5,
padding: 16,
padding: isMobileView ? 8 : 16,
gap: 10,
}}
>
{!!artist && (
<View
style={{
flexGrow: 0,
@@ -82,36 +82,34 @@ const SearchBarComponent = (props: { onValidate: (searchData: searchProps) => vo
maxWidth: '100%',
}}
>
{!!artist && (
<ArtistChipComponent
onPress={() => setArtist('')}
name={artist}
selected={true}
/>
)}
</View>
)}
<View
style={{
flex: 1,
flexGrow: 1,
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
}}
>
<View style={{ flex: 1 }}>
<View style={{ flexGrow: 1 }}>
<Input
type="text"
value={query}
variant={'unstyled'}
placeholder={translate('searchBarPlaceholder')}
style={{ height: 30 }}
style={{ height: 30, flex: 1 }}
onChangeText={(value) => setQuery(value)}
/>
</View>
<ButtonBase
type="menu"
icon={SearchNormal1}
style={{}}
onPress={handleValidate}
/>
</View>

View File

@@ -645,7 +645,7 @@ export const fr: typeof en = {
whatIsChromacase: "Chromacase c'est quoi?",
clickHereForMoreInfo: "Cliquez ici pour plus d'info",
forgotPassword: "J'ai oublié mon mot de passe",
updateProfile: 'Changer le Profile',
updateProfile: 'Changer le Profil',
accountCreatedOn: 'Compte créé le',
downloadAPKInstructions:
"Télécharger 'android-build.apk' dans la section 'Assets' de la dernière release",