fix: poster height

This commit is contained in:
ner committed 2023-08-05 16:33:13 +03:00
1 parent a4f420821a
commit 0cb860d0a0
3 files changed
+7 -7

No files matched your search

+3 -1
View File
@@ -15,7 +15,9 @@ interface Props {
const Preview: FC<Props> = ({ movie, className }) => {
const { data: credits } = useCredits({ movieId: movie?.id });
if (!movie) return null;
return (
<div className={`p-3 rounded-lg border bg-card text-card-foreground shadow-sm ${className}`}>
<div className='flex flex-col lg:flex-row max-w-[100%] gap-3 overflow-hidden'>
@@ -23,7 +25,7 @@ const Preview: FC<Props> = ({ movie, className }) => {
title={movie.title}
width={300}
height={450}
size={250}
size={100}
poster={movie.poster_path}
className='max-w-[300px]'
/>