but we still want this aligned

This commit is contained in:
Violet Caulfield
2025-01-17 06:15:51 -06:00
parent 85f8a517ce
commit b736d8fcb2

View File

@@ -63,31 +63,32 @@ export default function Artist(props: ArtistProps): React.JSX.Element {
</YStack>
<H2>Albums</H2>
<FlatList
contentContainerStyle={{
flexGrow: 1,
justifyContent: 'center',
// alignItems: "center"
}}
data={albums}
numColumns={columns} // TODO: Make this adjustable
renderItem={({ item: album }) => {
return (
<ItemCard
caption={album.Name}
subCaption={album.ProductionYear?.toString()}
width={(width / 1.1) / columns}
cornered
itemId={album.Id!}
onPress={() => {
props.navigation.navigate('Album', {
album
})
}}
/>
)
}}
/>
<YStack alignItems="center">
<FlatList
contentContainerStyle={{
flexGrow: 1,
justifyContent: 'center',
}}
data={albums}
numColumns={columns} // TODO: Make this adjustable
renderItem={({ item: album }) => {
return (
<ItemCard
caption={album.Name}
subCaption={album.ProductionYear?.toString()}
width={(width / 1.1) / columns}
cornered
itemId={album.Id!}
onPress={() => {
props.navigation.navigate('Album', {
album
})
}}
/>
)
}}
/>
</YStack>
</ScrollView>
</SafeAreaView>
)