mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
no name rendered in logo placeholder for the compact view
This commit is contained in:
parent
a5ea1358a1
commit
9a55f12dfd
2 changed files with 3 additions and 5 deletions
|
|
@ -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 })}>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,9 +12,7 @@
|
|||
.meta-info-container {
|
||||
.logo, .logo-placeholder {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 8rem;
|
||||
background-color: @color-surface-dark5-10;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue