make this narrower and add some more avatars

This commit is contained in:
Violet Caulfield
2024-11-24 06:44:49 -06:00
parent 6edf59cbb9
commit 755a82854f
2 changed files with 6 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import { Avatar, ScrollView, Text } from "tamagui";
import { useApiClientContext } from "../../jellyfin-api-provider";
import { useRecentlyPlayed } from "../../../api/queries/recently-played";
import { Stack } from "tamagui"
import { Colors } from "../../../enums/colors";
export default function RecentlyPlayed(): React.JSX.Element {
@@ -20,7 +21,10 @@ export default function RecentlyPlayed(): React.JSX.Element {
<ScrollView horizontal>
{ data && data.map((recentlyPlayedTrack) => {
return (
<Stack>
<Stack maxWidth={150} gap="$2">
<Avatar>
<Avatar.Fallback backgroundColor={Colors.Primary}/>
</Avatar>
<Text>{recentlyPlayedTrack.Name}</Text>
</Stack>
)

View File

@@ -13,7 +13,7 @@ export default function AccountDetails(): React.JSX.Element {
<Avatar circular>
<Avatar.Image src=""/>
<Avatar.Fallback backgroundColor={Colors.Secondary}/>
<Avatar.Fallback backgroundColor={Colors.Primary}/>
</Avatar>
</XStack>
)