fix: virtual slides
This commit is contained in:
1 parent
97264226b6
commit
0e56de39db
8 files changed
+29
-41
No files matched your search
@@ -1,6 +1,5 @@
|
||||
import { FC } from 'react';
|
||||
import { ImageOff } from 'lucide-react';
|
||||
import Image from 'next/image';
|
||||
|
||||
import { cn } from '@/lib/utils';
|
||||
|
||||
@@ -13,9 +12,8 @@ interface Props {
|
||||
|
||||
const Poster: FC<Props> = ({ title, poster, size = 250, className }) => {
|
||||
return poster ? (
|
||||
<Image
|
||||
<img
|
||||
className={cn('rounded-lg mx-auto w-auto h-full object-fill', className)}
|
||||
unoptimized
|
||||
height={750}
|
||||
width={500}
|
||||
src={`https://image.tmdb.org/t/p/w500/${poster}`}
|
||||
|
||||
@@ -14,6 +14,7 @@ const Rating: FC<Props> = ({ isFavorite, rating, toggleFavorite, iconsFillColor
|
||||
<span className='select-none flex w-full items-center ml-auto gap-1 mt-[-8px] justify-between'>
|
||||
<motion.span
|
||||
onTap={(event) => {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
toggleFavorite();
|
||||
|
||||
Reference in new issue
Block a user