Skip to content

Commit

Permalink
Maintain text alignment with long/overflowed anidb episode titles in …
Browse files Browse the repository at this point in the history
…the linking panel (#1138)
  • Loading branch information
natyusha authored Nov 12, 2024
1 parent df42fa8 commit 75473c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Collection/Tmdb/AniDBEpisode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const AniDBEpisode = React.memo(({ episode, extra, isOdd, onIconClick }: Props)
isOdd ? 'bg-panel-background-alt' : 'bg-panel-background',
)}
>
<div className={cx('w-8', extra && 'opacity-65')}>
<div className={cx('w-8 shrink-0', extra && 'opacity-65')}>
{getEpisodePrefixAlt(episode.AniDB?.Type)}
</div>
<div className={cx('w-8', extra && 'opacity-65')}>{padNumber(episode.AniDB?.EpisodeNumber ?? 0)}</div>
<div className={cx('w-8 shrink-0', extra && 'opacity-65')}>{padNumber(episode.AniDB?.EpisodeNumber ?? 0)}</div>

<div
className={cx('flex flex-col grow', extra && 'opacity-65')}
Expand Down

0 comments on commit 75473c8

Please sign in to comment.