mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-25 12:38:39 -06:00
clean up item search result component
This commit is contained in:
@@ -64,11 +64,16 @@ export default function Item({
|
||||
isNested: false
|
||||
})
|
||||
}}
|
||||
paddingVertical={"$2"}
|
||||
marginHorizontal={"$1"}
|
||||
>
|
||||
<BlurhashedImage item={item} size={width / 9} />
|
||||
|
||||
<YStack justifyContent="flex-start">
|
||||
<Text>{ item.Name ?? ""}</Text>
|
||||
<YStack
|
||||
marginLeft={"$1"}
|
||||
justifyContent="flex-start"
|
||||
>
|
||||
<Text bold>{ item.Name ?? ""}</Text>
|
||||
{ item.Type === 'Audio' || item.Type === 'MusicAlbum' ? (
|
||||
<Text>{ item.AlbumArtist ?? "Untitled Artist" }</Text>
|
||||
) : (
|
||||
@@ -76,7 +81,7 @@ export default function Item({
|
||||
)}
|
||||
</YStack>
|
||||
|
||||
<XStack justifyContent="flex-end">
|
||||
<XStack alignContent="flex-end">
|
||||
{ item.UserData?.IsFavorite ? (
|
||||
<Icon
|
||||
small
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProvidedHomeProps, StackParamList } from "../../../components/types";
|
||||
import { StackParamList } from "../../../components/types";
|
||||
import { ScrollView, RefreshControl } from "react-native";
|
||||
import { SafeAreaView } from "react-native-safe-area-context";
|
||||
import { YStack, XStack, Separator } from "tamagui";
|
||||
|
||||
Reference in New Issue
Block a user