Merge pull request #279 from Stremio/improve-metadetails-page-patch2

Improve metadetails page patch2
This commit is contained in:
Nikola Hristov 2022-05-09 17:59:11 +03:00 committed by GitHub
commit fbb88c759f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -11,6 +11,7 @@ const SKIP_EXTRA_NAME = 'skip';
const META_LINK_CATEGORY = 'meta';
const IMDB_LINK_CATEGORY = 'imdb';
const SHARE_LINK_CATEGORY = 'share';
const WRITERS_LINK_CATEGORY = 'Writers';
const TYPE_PRIORITIES = {
movie: 10,
series: 9,
@ -37,5 +38,6 @@ module.exports = {
META_LINK_CATEGORY,
IMDB_LINK_CATEGORY,
SHARE_LINK_CATEGORY,
WRITERS_LINK_CATEGORY,
TYPE_PRIORITIES
};

View file

@ -164,7 +164,7 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
null
}
{
typeof description === 'string' && description.length > 0 ?
compact && typeof description === 'string' && description.length > 0 ?
<div className={styles['description-container']}>{description}</div>
:
null
@ -173,7 +173,8 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
Array.from(linksGroups.keys())
.filter((category) => {
return category !== CONSTANTS.IMDB_LINK_CATEGORY &&
category !== CONSTANTS.SHARE_LINK_CATEGORY;
category !== CONSTANTS.SHARE_LINK_CATEGORY &&
category !== CONSTANTS.WRITERS_LINK_CATEGORY;
})
.map((category, index) => (
<MetaLinks

View file

@ -155,7 +155,7 @@
.name-container {
margin-top: 1rem;
font-size: 1.7rem;
font-size: 1.5rem;
color: @color-surface-light5-90;
}