mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Merge pull request #279 from Stremio/improve-metadetails-page-patch2
Improve metadetails page patch2
This commit is contained in:
commit
fbb88c759f
3 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@
|
|||
|
||||
.name-container {
|
||||
margin-top: 1rem;
|
||||
font-size: 1.7rem;
|
||||
font-size: 1.5rem;
|
||||
color: @color-surface-light5-90;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue