From a9683ba07710810f17f7259e23f4d29599d0beda Mon Sep 17 00:00:00 2001 From: kKaskak <117831817+kKaskak@users.noreply.github.com> Date: Wed, 6 Sep 2023 11:34:33 +0300 Subject: [PATCH] Update MetaPreview.js --- src/common/MetaPreview/MetaPreview.js | 44 +++++++++++++++------------ 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/src/common/MetaPreview/MetaPreview.js b/src/common/MetaPreview/MetaPreview.js index de1a1800c..94c4bc179 100644 --- a/src/common/MetaPreview/MetaPreview.js +++ b/src/common/MetaPreview/MetaPreview.js @@ -157,28 +157,34 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele : null } - { - typeof description === 'string' && description.length > 0 ? -
{description}
- : - null - } + { + compact && typeof description === 'string' && description.length > 0 ? +
{description}
+ : + null + } { Array.from(linksGroups.keys()) - .filter((category) => { - return category !== CONSTANTS.IMDB_LINK_CATEGORY && - category !== CONSTANTS.SHARE_LINK_CATEGORY && - category !== CONSTANTS.WRITERS_LINK_CATEGORY; - }) - .map((category, index) => ( - + .filter((category) => { + return category !== CONSTANTS.IMDB_LINK_CATEGORY && + category !== CONSTANTS.SHARE_LINK_CATEGORY && + category !== CONSTANTS.WRITERS_LINK_CATEGORY; + }) + .map((category, index) => ( + )) - } + } + { + !compact && typeof description === 'string' && description.length > 0 ? +
{description}
+ : + null + }
{