Skip to content

Commit

Permalink
Merge pull request #461 from Stremio/fix/description-details-visible
Browse files Browse the repository at this point in the history
Description bug fix and test file deleted
  • Loading branch information
tymmesyde authored Oct 4, 2023
2 parents 5a6a2c4 + f43706f commit bc588a9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
15 changes: 14 additions & 1 deletion src/common/MetaPreview/MetaPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
}
{
compact && typeof description === 'string' && description.length > 0 ?
<div className={styles['description-container']}>{description}</div>
<div className={styles['description-container']}>
{description}
</div>
:
null
}
Expand All @@ -179,6 +181,17 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
/>
))
}
{
!compact && typeof description === 'string' && description.length > 0 ?
<div className={styles['description-container']}>
<div className={styles['label-container']}>
{t('SUMMARY')}
</div>
{description}
</div>
:
null
}
</div>
<div className={styles['action-buttons-container']}>
{
Expand Down
8 changes: 7 additions & 1 deletion src/common/MetaPreview/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,18 @@
}

.description-container {
max-height: 6em;
margin-top: 1rem;
font-size: 1rem;
font-weight: 400;
line-height: 2em;
color: var(--primary-foreground-color);
.label-container {
text-transform: uppercase;
font-size: 0.95rem;
font-weight: 700;
color: var(--primary-foreground-color);
opacity: 0.3;
}
}

.meta-links {
Expand Down

0 comments on commit bc588a9

Please sign in to comment.