mirror of
https://github.com/Jellify-Music/App.git
synced 2026-02-27 06:08:38 -06:00
make this narrower and add some more avatars
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user