fix: resize episode preview image (#842)

This commit is contained in:
Gauthier
2024-06-26 16:33:46 +02:00
committed by GitHub
parent f714132909
commit 96ba53fecc
2 changed files with 29 additions and 6 deletions

View File

@@ -56,12 +56,14 @@ const Season = ({ seasonNumber, tvId }: SeasonProps) => {
{episode.overview && <p>{episode.overview}</p>}
</div>
{episode.stillPath && (
<Image
className="h-auto w-full rounded-lg xl:h-32 xl:w-auto"
src={`https://image.tmdb.org/t/p/original/${episode.stillPath}`}
alt=""
fill
/>
<div className="relative aspect-video xl:h-32">
<Image
className="rounded-lg object-contain"
src={`https://image.tmdb.org/t/p/original/${episode.stillPath}`}
alt=""
fill
/>
</div>
)}
</div>
);