mirror of
https://gitlab.com/foxixus/neomovies.git
synced 2025-10-28 01:48:50 +05:00
magnet links opening in new tab
This commit is contained in:
@@ -138,14 +138,22 @@ export default function TorrentSelector({ imdbId, type, totalSeasons }: TorrentS
|
|||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
key={torrent.magnet}
|
key={torrent.magnet}
|
||||||
|
asChild
|
||||||
onClick={() => handleQualitySelect(torrent)}
|
onClick={() => handleQualitySelect(torrent)}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
className="w-full items-center text-left px-3 py-2"
|
className="w-full items-center text-left px-3 py-2"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
href={torrent.magnet}
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className="flex w-full items-center"
|
||||||
>
|
>
|
||||||
<span className="flex-1 truncate whitespace-nowrap overflow-hidden">{label}</span>
|
<span className="flex-1 truncate whitespace-nowrap overflow-hidden">{label}</span>
|
||||||
{size !== undefined && (
|
{size !== undefined && (
|
||||||
<span className="text-xs text-muted-foreground">{size.toFixed(2)} GB</span>
|
<span className="text-xs text-muted-foreground">{size.toFixed(2)} GB</span>
|
||||||
)}
|
)}
|
||||||
|
</a>
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user