Skip to content

Commit

Permalink
Fixed playlists page.
Browse files Browse the repository at this point in the history
  • Loading branch information
aritrakar committed Jul 26, 2023
1 parent ac87f0d commit 37503b5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
1 change: 0 additions & 1 deletion website/app/collection/hotcharts/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export default function CollectionHotChartsPage() {
}} onChange={handleSearch}/>
</Grid>

{/* TODO: Top artists section? */}
<Grid sx={{ display: "flex", padding: 2 }}>
{albums.map((album, index) => {
if (album)
Expand Down
18 changes: 13 additions & 5 deletions website/app/collection/playlists/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,19 @@ export default function CollectionPlaylistsPage() {
</Button>
</Grid>

{
playlists.map((playlist, index) => {
return <PlaylistCard key={index} playlist={playlist} />;
})
}
<Grid sx={{
display: "flex",
flexWrap: 'wrap',
justifyContent: 'start',
marginBottom: '5em',
padding: 2
}}>
{
playlists.map((playlist, index) => {
return <PlaylistCard key={index} playlist={playlist} />;
})
}
</Grid>
</Grid>
);
}

0 comments on commit 37503b5

Please sign in to comment.