make artist image circular and albums rounded

This commit is contained in:
Violet Caulfield
2024-11-26 08:50:11 -06:00
parent 114f21a0fb
commit e0e29c737e
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ export default function RecentArtists(): React.JSX.Element {
gap="$2"
alignContent="center"
>
<Avatar>
<Avatar circular>
<Avatar.Image src={`${server!.url}/Items/${recentArtist.Id!}/Images/Primary`} />
<Avatar.Fallback backgroundColor={Colors.Primary}/>
</Avatar>
+4 -4
View File
@@ -1,5 +1,5 @@
import React, { useEffect } from "react";
import { Avatar, ScrollView, Text } from "tamagui";
import { Avatar, ScrollView, Text, YStack } from "tamagui";
import { useApiClientContext } from "../../jellyfin-api-provider";
import { useRecentlyPlayed } from "../../../api/queries/recently-played";
import { Stack } from "tamagui"
@@ -21,13 +21,13 @@ export default function RecentlyPlayed(): React.JSX.Element {
<ScrollView horizontal>
{ data && data.map((recentlyPlayedTrack) => {
return (
<Stack maxWidth={150} gap="$2">
<Avatar>
<YStack maxWidth={150} gap="$2">
<Avatar borderRadius={2}>
<Avatar.Image src={`${server!.url}/Items/${recentlyPlayedTrack.AlbumId}/Images/Primary`} />
<Avatar.Fallback backgroundColor={Colors.Primary}/>
</Avatar>
<Text>{recentlyPlayedTrack.Name}</Text>
</Stack>
</YStack>
)
})}
</ScrollView>