From 97264226b6c4b5dfe53f5b8c5ecb793d58a2c80b Mon Sep 17 00:00:00 2001 From: ner Date: Sat, 23 Mar 2024 11:28:40 +0200 Subject: [PATCH] fix: magnet link --- components/Movie/Card.tsx | 2 +- components/Movie/components/Torrents/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Movie/Card.tsx b/components/Movie/Card.tsx index 75db186..f3eb016 100644 --- a/components/Movie/Card.tsx +++ b/components/Movie/Card.tsx @@ -28,7 +28,7 @@ const Card: FC = ({ movie, onClick, fit }) => { onDoubleClick={handleToggleFavorite} onTap={onClick} className={cn( - 'w-[300px] h-[450px] shrink-0 mx-auto', + 'w-[300px] h-[450px] min-w-[300px] shrink-0 mx-auto', fit ? 'w-full h-auto xs:w-[300px] xs:h-[450px]' : undefined )} > diff --git a/components/Movie/components/Torrents/index.tsx b/components/Movie/components/Torrents/index.tsx index bb9966c..1f2339c 100644 --- a/components/Movie/components/Torrents/index.tsx +++ b/components/Movie/components/Torrents/index.tsx @@ -82,7 +82,7 @@ const Torrents: FC = ({ title, year, isOpen, onResolve }) => { hosts.split(',').forEach((host) => { const link = window.open(`http://${host}:65220/playuri?uri=${magnet}`, '_blank'); - setTimeout(() => link?.close(), 100); + setTimeout(() => link?.close(), 1000); }); };