fix: navigation

This commit is contained in:
ner committed 2024-03-20 16:01:25 +02:00
1 parent c6d306cb7b
commit 585094dd24
9 files changed
+73 -50

No files matched your search

@@ -16,7 +16,10 @@ export default function Actions({ onClose, movie }: Props) {
return (
<>
<Button className='h-8 grow' onClick={() => showTorrentsModal({ title: movie.title })}>
<Button
className='h-8 grow'
onClick={() => showTorrentsModal({ title: movie.title, year: new Date(movie.release_date).getFullYear() })}
>
Torrents
</Button>
<Button
+1 -1
View File
@@ -33,7 +33,7 @@ const Preview: FC<Props> = ({ movie, className, direction, onClose }) => {
if (!movie) return null;
return (
<div className={cn('rounded-xl bg-card text-card-foreground', { 'p-2': Boolean(onClose) }, className)}>
<div className={cn('rounded-xl text-card-foreground', { 'p-2': Boolean(onClose) }, className)}>
<div className='flex flex-col lg:flex-row max-w-[100%] gap-3'>
<div className='max-w-[300px] min-w-[300px] h-[450px] mx-auto w-[100%] relative overflow-hidden rounded-lg'>
<AnimatePresence custom={direction}>