diff --git a/src/common/Video/Video.js b/src/common/Video/Video.js index 778bcdef7..1964a9b93 100644 --- a/src/common/Video/Video.js +++ b/src/common/Video/Video.js @@ -5,6 +5,8 @@ import Icon, { dataUrl as iconDataUrl } from 'stremio-icons/dom'; import colors from 'stremio-colors'; import styles from './styles'; +const MAX_TITLE_SYMBOLS = 100; + const renderPoster = (poster) => { if (poster.length === 0) { return null; @@ -26,7 +28,7 @@ const renderTitle = (number, title) => { } return ( -
{number}. {title}
+
{number}. {title.length > MAX_TITLE_SYMBOLS ? title.slice(0, MAX_TITLE_SYMBOLS) + '...' : title}
); }