Skip to content

Commit

Permalink
Playlist fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Arikatsu committed Mar 2, 2023
1 parent fda55a7 commit 547d8ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/css/components/Playlist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@
.Home_PlaylistScroll {
visibility: hidden;
position: absolute;
top: 50%;
transform: translateY(-50%);
top: 150px;
font-size: 30px;
color: white !important;
background-color: var(--accent-color) !important;
Expand Down
11 changes: 2 additions & 9 deletions src/ui/components/home/Playlists.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,14 @@ class Playlists extends React.Component<any, IState> {
}

render() {
return this.state.playlists.length > 0 ? (
return (
<div className={"Home_Playlists"}>
<BasicButton
onClick={() => this.scrollTo("left")}
icon={<BiChevronLeft />}
className={"Home_PlaylistScroll"}
/>

<Link to={contentRoutes.FAVORITES} style={{ textDecoration: "none" }}>
<div className={"Home_PlaylistFavorites"}>
<RiHeartFill />
<h3>Favorites</h3>
</div>
</Link>

{this.state.playlists.map((playlist: Playlist) => (
<Link
to={`${contentRoutes.PLAYLIST.substring(0, contentRoutes.PLAYLIST.length - 3)}${playlist.id}`}
Expand All @@ -88,7 +81,7 @@ class Playlists extends React.Component<any, IState> {
className={"Home_PlaylistScroll"}
/>
</div>
) : null;
);
}
}

Expand Down

0 comments on commit 547d8ca

Please sign in to comment.