fix: swiper

This commit is contained in:
ner committed 2024-03-25 15:31:17 +02:00
1 parent 1b87355925
commit 1aa145a98c
13 files changed
+125 -123

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ const Card: FC<Props> = ({ movie, onClick, fit }) => {
<div
onDoubleClick={handleToggleFavorite}
className={cn(
'w-[300px] h-[450px] min-w-[300px] shrink-0 mx-auto',
'w-[300px] h-[450px] min-w-[300px] min-h-[450px] shrink-0 mx-auto',
fit ? 'w-full h-auto xs:w-[300px] xs:h-[450px]' : undefined
)}
>
@@ -37,7 +37,7 @@ const Card: FC<Props> = ({ movie, onClick, fit }) => {
title={movie.title}
size={100}
poster={movie.poster_path}
className={fit ? 'h-auto xs:h-full' : undefined}
className={fit ? 'h-auto min-h-[450px] xs:h-full' : undefined}
/>
</motion.div>
<div className='absolute left-0 top-0 w-full h-20 bg-gradient-to-t from-transparent to-black opacity-75 rounded-t-lg'>