css fixed
This commit is contained in:
@@ -66,7 +66,7 @@ const SearchBarComponent = (props: { onValidate: (searchData: searchProps) => vo
|
|||||||
borderBottomColor: '#9E9E9E',
|
borderBottomColor: '#9E9E9E',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: isMobileView ? 'column' : 'row',
|
flexDirection: isMobileView ? 'column' : 'row',
|
||||||
alignItems: 'center',
|
maxWidth: '100%',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
margin: 5,
|
margin: 5,
|
||||||
padding: 16,
|
padding: 16,
|
||||||
@@ -78,7 +78,8 @@ const SearchBarComponent = (props: { onValidate: (searchData: searchProps) => vo
|
|||||||
flexGrow: 0,
|
flexGrow: 0,
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
flexWrap: 'wrap',
|
flexWrap: 'nowrap',
|
||||||
|
maxWidth: '100%',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{artist && (
|
{artist && (
|
||||||
@@ -91,36 +92,26 @@ const SearchBarComponent = (props: { onValidate: (searchData: searchProps) => vo
|
|||||||
</View>
|
</View>
|
||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
|
flex: 1,
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
justifyContent: 'space-between',
|
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
flexGrow: 1,
|
|
||||||
width: '100%',
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<View
|
<View style={{ flex: 1 }}>
|
||||||
style={{
|
|
||||||
flexGrow: 1,
|
|
||||||
flexShrink: 1,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Input
|
<Input
|
||||||
type="text"
|
type="text"
|
||||||
value={query}
|
value={query}
|
||||||
variant={'unstyled'}
|
variant={'unstyled'}
|
||||||
placeholder={translate('searchBarPlaceholder')}
|
placeholder={translate('searchBarPlaceholder')}
|
||||||
style={{ width: '100%', height: 30 }}
|
style={{ height: 30 }}
|
||||||
onChangeText={(value) => setQuery(value)}
|
onChangeText={(value) => setQuery(value)}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
type="menu"
|
type="menu"
|
||||||
icon={SearchNormal1}
|
icon={SearchNormal1}
|
||||||
style={{
|
style={{}}
|
||||||
flexShrink: 0,
|
|
||||||
flexGrow: 0,
|
|
||||||
}}
|
|
||||||
onPress={handleValidate}
|
onPress={handleValidate}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ const SearchView = (props: RouteProps<{}>) => {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
artist:
|
artist:
|
||||||
artistsQuery.data?.find((artist) => artist.id == song?.artist?.id)?.name ??
|
artistsQuery?.data?.find(({ id }) => id == song?.artistId)?.name ??
|
||||||
'unknown artist',
|
'unknown artist',
|
||||||
song: song?.name,
|
song: song?.name,
|
||||||
image: song?.cover,
|
image: song?.cover,
|
||||||
|
|||||||
Reference in New Issue
Block a user