fix: resize episode preview image (#842)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user