Skip to content

Commit

Permalink
Fix tmdb episode select
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan committed Sep 2, 2024
1 parent 53185b4 commit eb72ad6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Collection/Tmdb/EpisodeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,20 +97,20 @@ const EpisodeSelect = React.memo((props: Props) => {
>
{({ open }) => (
<>
<div className="w-8">
<div className="w-8 shrink-0">
{/* eslint-disable-next-line no-nested-ternary */}
{tmdbEpisode?.SeasonNumber != null
? (tmdbEpisode.SeasonNumber === 0 ? 'SP' : `S${padNumber(tmdbEpisode.SeasonNumber)}`)
: 'XX'}
</div>
<div className="w-8">
<div className="w-8 shrink-0">
{tmdbEpisode?.EpisodeNumber ? padNumber(tmdbEpisode.EpisodeNumber) : 'XX'}
</div>
<div className="line-clamp-1 grow text-left">
{tmdbEpisode?.Title ?? 'Entry Not Linked'}
</div>

<Icon path={mdiChevronDown} size={1} className="transition-transform" rotate={open ? 180 : 0} />
<Icon path={mdiChevronDown} size={1} className="shrink-0 transition-transform" rotate={open ? 180 : 0} />
</>
)}
</ListboxButton>
Expand Down

0 comments on commit eb72ad6

Please sign in to comment.