mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-05 20:59:49 +00:00
Merge pull request #1168 from mrcanelas/fix/streams-list-episode-title
Some checks are pending
Build / build (push) Waiting to run
Some checks are pending
Build / build (push) Waiting to run
fix: improve episode title formatting in StreamsList component
This commit is contained in:
commit
74f1d660be
1 changed files with 3 additions and 1 deletions
|
|
@ -108,7 +108,9 @@ const StreamsList = ({ className, video, type, onEpisodeSearch, ...props }) => {
|
|||
<Icon className={styles['icon']} name={'chevron-back'} />
|
||||
</Button>
|
||||
<div className={styles['episode-title']}>
|
||||
{`S${video?.season}E${video?.episode} ${(video?.title)}`}
|
||||
{typeof video.season === 'number' && typeof video.episode === 'number'
|
||||
? `S${video.season}E${video.episode}${video.title ? ` ${video.title}` : ''}`
|
||||
: (video.title ?? '')}
|
||||
</div>
|
||||
</React.Fragment>
|
||||
:
|
||||
|
|
|
|||
Loading…
Reference in a new issue