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>} {episode.overview && <p>{episode.overview}</p>}
</div> </div>
{episode.stillPath && ( {episode.stillPath && (
<Image <div className="relative aspect-video xl:h-32">
className="h-auto w-full rounded-lg xl:h-32 xl:w-auto" <Image
src={`https://image.tmdb.org/t/p/original/${episode.stillPath}`} className="rounded-lg object-contain"
alt="" src={`https://image.tmdb.org/t/p/original/${episode.stillPath}`}
fill alt=""
/> fill
/>
</div>
)} )}
</div> </div>
); );

View File

@@ -63,6 +63,27 @@ module.exports = {
}, },
}), }),
}, },
aspectRatio: {
auto: 'auto',
square: '1 / 1',
video: '16 / 9',
1: '1',
2: '2',
3: '3',
4: '4',
5: '5',
6: '6',
7: '7',
8: '8',
9: '9',
10: '10',
11: '11',
12: '12',
13: '13',
14: '14',
15: '15',
16: '16',
},
}, },
plugins: [ plugins: [
require('@tailwindcss/forms'), require('@tailwindcss/forms'),