Add Watch Trailer button next to Start Watching, fix cursors

This commit is contained in:
X4Lo committed 2026-06-18 22:58:38 +01:00
1 parent 3c089ee110
commit 73bff72cec
2 files changed
+69 -33

No files matched your search

+16 -3
View File
@@ -34,6 +34,7 @@ import {
History,
Trash2,
ExternalLink,
Play,
} from "lucide-react";
import {
Tooltip,
@@ -339,7 +340,7 @@ export function EntryDetailsPage() {
<>
<span>•</span>
<button
className="inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground transition-colors underline decoration-dotted"
className="inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground transition-colors underline decoration-dotted cursor-pointer"
onClick={() => setShowSeenDialog(true)}
>
<Eye className="h-3 w-3" />
@@ -443,8 +444,19 @@ export function EntryDetailsPage() {
{/* Sections */}
<div className="mt-10 space-y-8">
{/* Streaming player */}
<StreamingSection entry={e} seasons={seasons} />
{/* Streaming player + Trailer */}
<div className="flex flex-wrap items-center justify-center gap-2">
<StreamingSection entry={e} seasons={seasons} />
<a
href={`https://www.youtube.com/results?search_query=${encodeURIComponent(e.title + " official trailer")}`}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-2 h-11 px-6 text-sm font-medium rounded-md border border-input bg-background hover:bg-accent hover:text-accent-foreground transition-colors"
>
<Play className="h-4 w-4" />
Watch Trailer
</a>
</div>
{credits.length > 0 && (
<>
@@ -453,6 +465,7 @@ export function EntryDetailsPage() {
credits={credits}
entryId={e.id}
isTvSeries={e.is_tvseries}
maxItems={12}
/>
</>
)}