From 62f03fa7a487e40fc3770fabf8d4cf0d4a02f6fa Mon Sep 17 00:00:00 2001 From: kKaskak <117831817+kKaskak@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:43:19 +0300 Subject: [PATCH] episode streams panel title missing resolved --- .../MetaDetails/StreamsList/StreamsList.js | 34 ++++++++-- .../MetaDetails/StreamsList/styles.less | 68 +++++++++++++++---- .../MetaDetails/VideosList/Video/Video.js | 2 +- 3 files changed, 82 insertions(+), 22 deletions(-) diff --git a/src/routes/MetaDetails/StreamsList/StreamsList.js b/src/routes/MetaDetails/StreamsList/StreamsList.js index 5259d0d06..20ef7641b 100644 --- a/src/routes/MetaDetails/StreamsList/StreamsList.js +++ b/src/routes/MetaDetails/StreamsList/StreamsList.js @@ -19,6 +19,9 @@ const StreamsList = ({ className, video, ...props }) => { const onAddonSelected = React.useCallback((event) => { setSelectedAddon(event.value); }, []); + const backButtonOnClick = React.useCallback(() => { + window.history.back(); + }, []); const streamsByAddon = React.useMemo(() => { return props.streams .filter((streams) => streams.content.type === 'Ready') @@ -92,15 +95,32 @@ const StreamsList = ({ className, video, ...props }) => { : - { - Object.keys(streamsByAddon).length > 1 ? - +
+ { video ? ( + + +
+ {`S${video?.season}E${video?.episode} ${(video?.title)?.toLowerCase()?.replace(/\b\w/g, (char) => char.toUpperCase())} +`} +
+
+ ) : null - } + } + { + Object.keys(streamsByAddon).length > 1 ? ( + + ) + : + null + } +
{filteredStreams.map((stream, index) => ( .multiselect-label { + .episode-title { + min-width: 45%; color: var(--primary-foreground-color); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } - & >.multiselect-icon { - color: var(--primary-foreground-color); - } - - .multiselect-menu-container { - max-height: calc(3.2rem * 7); - overflow: auto; + .select-input-container { + min-width: 40%; + flex: 0 0 auto; + flex-grow: 1; + background: none; + &:hover, &:focus, &:global(.active) { + background-color: var(--overlay-color); + } + + & >.multiselect-label { + color: var(--primary-foreground-color); + } + + & >.multiselect-icon { + color: var(--primary-foreground-color); + } + + .multiselect-menu-container { + max-height: calc(3.2rem * 7); + overflow: auto; + } } } diff --git a/src/routes/MetaDetails/VideosList/Video/Video.js b/src/routes/MetaDetails/VideosList/Video/Video.js index befcbfd3c..aa810256a 100644 --- a/src/routes/MetaDetails/VideosList/Video/Video.js +++ b/src/routes/MetaDetails/VideosList/Video/Video.js @@ -92,7 +92,7 @@ const Video = ({ className, id, title, thumbnail, episode, released, upcoming, w
{episode !== null && !isNaN(episode) ? `${episode}. ` : null} - {typeof title === 'string' && title.length > 0 ? title : id} + {typeof title === 'string' && title.length > 0 ? title.toLowerCase().replace(/\b\w/g, (char) => char.toUpperCase()) : id}
{