mirror of
https://gitlab.com/foxixus/neomovies.git
synced 2025-10-27 17:38: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 (
|
||||
<Button
|
||||
key={torrent.magnet}
|
||||
asChild
|
||||
onClick={() => handleQualitySelect(torrent)}
|
||||
variant="outline"
|
||||
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>
|
||||
{size !== undefined && (
|
||||
<span className="text-xs text-muted-foreground">{size.toFixed(2)} GB</span>
|
||||
)}
|
||||
</a>
|
||||
</Button>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user