Skip to content

Commit

Permalink
feat(project): put tag above the current playing overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Jun 23, 2021
1 parent 7bcc930 commit 77fe5bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Card/Card.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ $aspects: ((1, 1), (2, 1), (2, 3), (4, 3), (5, 3), (16, 9), (9, 16));
.meta {
position: absolute;
bottom: 0;
z-index: 1;
display: flex;
justify-content: flex-end;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ function Card({
aria-label={t('play_item', { title })}
>
<div className={posterClassNames} style={{ backgroundImage: posterSource ? `url(${posterSource})` : '' }}>
{isCurrent && <div className={styles.currentLabel}>{currentLabel}</div>}
{!loading && (
<div className={styles.meta}>
{featured && !disabled && <div className={classNames(styles.title, { [styles.loading]: loading })}>{title}</div>}
{renderTag()}
</div>
)}
{isCurrent && <div className={styles.currentLabel}>{currentLabel}</div>}
{progress ? (
<div className={styles.progressContainer}>
<div className={styles.progressBar} style={{ width: `${Math.round(progress * 100)}%` }} />
Expand Down
2 changes: 1 addition & 1 deletion stylelint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ module.exports = (function() {
'selector-pseudo-element-colon-notation': 'double',

// PostCSS takes care of automatic vendor prefixing (not implemented currently)
'property-no-vendor-prefix': false,
'property-no-vendor-prefix': null,

// No units are needed for zero
'length-zero-no-unit': true,
Expand Down

0 comments on commit 77fe5bd

Please sign in to comment.