Skip to content

Commit

Permalink
Add existing flag for Discover Movie Posters
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Dec 6, 2023
1 parent bc4847c commit 7c32061
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions frontend/src/DiscoverMovie/Posters/DiscoverMoviePoster.css
Expand Up @@ -68,6 +68,19 @@ $hoverScale: 1.05;
color: var(--white);
}

.existing {
position: absolute;
top: 0;
left: 0;
z-index: 1;
width: 0;
height: 0;
border-width: 25px 25px 0 0;
border-style: solid;
border-color: #37bc9b transparent transparent;
color: var(--white);
}

.controls {
position: absolute;
bottom: 10px;
Expand Down
Expand Up @@ -7,6 +7,7 @@ interface CssExports {
'controls': string;
'editorSelect': string;
'excluded': string;
'existing': string;
'externalLinks': string;
'link': string;
'overlayTitle': string;
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/DiscoverMovie/Posters/DiscoverMoviePoster.js
Expand Up @@ -159,6 +159,14 @@ class DiscoverMoviePoster extends Component {
/>
}

{
isExisting &&
<div
className={styles.existing}
title={translate('Existing')}
/>
}

<Link
className={styles.link}
style={elementStyle}
Expand Down

0 comments on commit 7c32061

Please sign in to comment.