no name rendered in logo placeholder for the compact view

This commit is contained in:
nklhrstv 2022-02-15 16:05:46 +02:00
parent a5ea1358a1
commit 9a55f12dfd
2 changed files with 3 additions and 5 deletions

View file

@ -93,8 +93,8 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
return trailerStreams[0].deepLinks.player;
}, [trailerStreams]);
const renderLogoFallback = React.useCallback(() => (
<div className={styles['logo-placeholder']}>{name}</div>
), [name]);
<div className={styles['logo-placeholder']}>{!compact ? name : null}</div>
), [compact, name]);
return (
<div className={classnames(className, styles['meta-preview-container'], { [styles['compact']]: compact })}>
{

View file

@ -12,9 +12,7 @@
.meta-info-container {
.logo, .logo-placeholder {
width: 100%;
}
.logo {
height: 8rem;
background-color: @color-surface-dark5-10;
}