fix: torrent size
This commit is contained in:
1 parent
8d7e2df869
commit
c6d306cb7b
22 files changed
+1638
-300
No files matched your search
@@ -7,17 +7,19 @@ import { Tabs, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||
|
||||
export default function Navigation() {
|
||||
const path = usePathname();
|
||||
|
||||
return (
|
||||
<Tabs value={path} className='flex-grow mt-2'>
|
||||
<TabsList className='grid w-full grid-cols-3'>
|
||||
<TabsList className='flex w-full'>
|
||||
{[
|
||||
['/', 'Random'],
|
||||
['/top', 'Top'],
|
||||
['/favorites', 'Favorites']
|
||||
].map(([path, label]) => (
|
||||
{ path: '/', title: 'Random' },
|
||||
{ path: '/popular', title: 'Popular' },
|
||||
{ path: '/top', title: 'Top rated' },
|
||||
{ path: '/favorites', title: 'Favorites' }
|
||||
].map(({ path, title }) => (
|
||||
<Link href={path} className='w-full' key={path}>
|
||||
<TabsTrigger className='w-full' value={path}>
|
||||
{label}
|
||||
{title}
|
||||
</TabsTrigger>
|
||||
</Link>
|
||||
))}
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function Actions({ onClose, movie }: Props) {
|
||||
<Button
|
||||
className='h-8 grow'
|
||||
onClick={() => {
|
||||
router.push(`/top?similar=${movie.id}&title=${encodeURIComponent(movie.title)}`);
|
||||
router.push(`/similar?movieId=${movie.id}&title=${encodeURIComponent(movie.title)}`);
|
||||
onClose?.();
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -21,9 +21,9 @@ interface Props {
|
||||
|
||||
const variants = {
|
||||
enter: (direction: number) => ({
|
||||
scale: 0.8,
|
||||
opacity: 0,
|
||||
[direction === 0 ? 'y' : 'x']: direction === 0 ? -100 : direction * 300
|
||||
scale: direction === 0 ? 1 : 0.8,
|
||||
opacity: direction === 0 ? 1 : 0,
|
||||
x: direction === 0 ? 0 : direction * 300
|
||||
}),
|
||||
center: { x: 0, opacity: 1, y: 0, scale: 1 },
|
||||
exit: (direction: number) => ({ scale: 0.8, opacity: 1, x: direction * -300 })
|
||||
|
||||
@@ -17,7 +17,7 @@ const container = {
|
||||
hidden: {},
|
||||
visible: {
|
||||
transition: {
|
||||
staggerChildren: 0.15
|
||||
staggerChildren: 0.03
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -44,7 +44,7 @@ const Credits: FC<Props> = ({ movieId, onPersonClick }) => {
|
||||
key={`${actor.id}_${actor.cast_id}`}
|
||||
title={actor.name}
|
||||
onTap={() => {
|
||||
router.push(`/top?starring=${actor.id}&title=${encodeURIComponent(actor.name)}`);
|
||||
router.push(`/starring?actorId=${actor.id}&title=${encodeURIComponent(actor.name)}`);
|
||||
onPersonClick?.(actor.id.toString());
|
||||
}}
|
||||
className='p-2 rounded-lg border bg-card text-card-foreground self-end max-w-[150px] w-full shrink-0 cursor-pointer transition-shadow hover:shadow-lg'
|
||||
|
||||
@@ -52,7 +52,7 @@ const hostAtom = atomWithStorage<string>('magnet-host', '');
|
||||
const showHostManagerModal = create(({ onResolve, isOpen }) => {
|
||||
const [host, setHost] = useAtom(hostAtom);
|
||||
return (
|
||||
<Modal className='p-3 pt-0 max-w-[200px] m-auto' isOpen={isOpen} onClose={() => onResolve()}>
|
||||
<Modal className='p-3 max-w-[200px] m-auto' isOpen={isOpen} onClose={() => onResolve()}>
|
||||
<Input
|
||||
autoFocus
|
||||
placeholder='Enter host of Elementum'
|
||||
|
||||
Reference in new issue
Block a user