fixed titles and artists too long that breaked the layout, reduced the spacing of SongCardGrid and use itemDimesnion instead of NbElementsPerRow to see better on mobile
This commit is contained in:
@@ -13,11 +13,11 @@ const SongCardGrid = (props: SongCardGrid) => {
|
||||
return <VStack>
|
||||
<Heading>{props.heading}</Heading>
|
||||
<FlatGrid
|
||||
maxItemsPerRow={props.maxItemPerRow ?? 5}
|
||||
itemDimension={250}
|
||||
additionalRowStyle={{ justifyContent: 'space-between' }}
|
||||
data={props.songs}
|
||||
renderItem={({ item }) => <SongCard {...item} /> }
|
||||
spacing={20}
|
||||
spacing={10}
|
||||
/>
|
||||
</VStack>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user