Skip to content

Commit

Permalink
fixing thumbnail for the listing page
Browse files Browse the repository at this point in the history
  • Loading branch information
nirmalkc committed Mar 23, 2022
1 parent 56db001 commit 0edbf70
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/common/playlists/PlayThumbnail.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const PlayThumbnail = ({ play }) => {
return (
<li key={play.id}>
<Link to={play.path} state={{ id: play.id }}>
<img src={cover} alt={play.id} />
<img src={cover} alt={play.id} className="play-thumb" />
<div className="play-title">{play.name}</div>
<div className="play-status">
<BsPlayCircleFill size="18px" color="var(--color-neutral-80)" />
Expand Down
22 changes: 17 additions & 5 deletions src/common/playlists/playlist.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
border-radius: 0.6rem;
background-color: var(--color-neutral-10);
/* width: var(--play-thumb-size);
height: calc(var(--play-thumb-size) * 0.8); */
padding: 1.6rem;
height: calc(var(--play-thumb-size) * 0.8);
padding: 1.6rem; */
box-shadow: 0px 0 6px 0px rgba(var(--color-neutral-90-rgb),0.10);
-webkit-box-shadow: 0px 0 6px 0px rgba(var(--color-neutral-90-rgb),0.10);
-moz-box-shadow: 0px 0 6px 0px rgba(var(--color-neutral-90-rgb),0.10);
transition: all 0.16s ease-in-out;
overflow: hidden;
}

.list-plays li a:hover,
Expand Down Expand Up @@ -56,9 +57,9 @@

.list-plays a:hover:after {
background: rgb(0,0,0);
background: -moz-linear-gradient(180deg, rgba(var(--color-brand-primary-rgb),0.2) 0%, rgba(var(--color-brand-primary-rgb),0.2) 100%);
background: -webkit-linear-gradient(180deg, rgba(var(--color-brand-primary-rgb),0.2) 0%, rgba(var(--color-brand-primary-rgb),0.2) 100%);
background: linear-gradient(180deg, rgba(var(--color-brand-primary-rgb),0.2) 0%, rgba(var(--color-brand-primary-rgb),0.2) 100%);
background: -moz-linear-gradient(180deg, rgba(var(--color-brand-primary-rgb),0.6) 0%, rgba(var(--color-brand-primary-rgb),1) 100%);
background: -webkit-linear-gradient(180deg, rgba(var(--color-brand-primary-rgb),0.6) 0%, rgba(var(--color-brand-primary-rgb),1) 100%);
background: linear-gradient(180deg, rgba(var(--color-brand-primary-rgb),0.6) 0%, rgba(var(--color-brand-primary-rgb),1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="var(--color-brand-primary)",endColorstr="var(--color-brand-primary)",GradientType=1);
}

Expand All @@ -77,6 +78,15 @@
transition: all 0.16s ease-in-out;
}

.list-plays a .play-thumb {
position: relative;
left: 50%;
transform: translateX(-50%);
width: auto;
height: 100%;

}

.list-plays a:hover .play-title {
position: absolute;
top: 1.6rem;
Expand All @@ -90,6 +100,7 @@
.list-plays a .play-status {
position: absolute;
opacity: 0;
left: 1.6rem;
bottom: 50%;
font-size: var(--fs-rg);
transition: all 0.16s ease-in-out;
Expand Down Expand Up @@ -287,6 +298,7 @@

.play-details .play-details-body {
flex-grow: 1;
padding: 1rem;
overflow-y: auto;
}

Expand Down

0 comments on commit 0edbf70

Please sign in to comment.