Add existing flag for Discover Movie Posters

pull/9463/head
Bogdan 7 months ago
parent bc4847cdc7
commit 7c32061e17

@ -68,6 +68,19 @@ $hoverScale: 1.05;
color: var(--white); 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 { .controls {
position: absolute; position: absolute;
bottom: 10px; bottom: 10px;

@ -7,6 +7,7 @@ interface CssExports {
'controls': string; 'controls': string;
'editorSelect': string; 'editorSelect': string;
'excluded': string; 'excluded': string;
'existing': string;
'externalLinks': string; 'externalLinks': string;
'link': string; 'link': string;
'overlayTitle': string; 'overlayTitle': string;

@ -159,6 +159,14 @@ class DiscoverMoviePoster extends Component {
/> />
} }
{
isExisting &&
<div
className={styles.existing}
title={translate('Existing')}
/>
}
<Link <Link
className={styles.link} className={styles.link}
style={elementStyle} style={elementStyle}

Loading…
Cancel
Save