From fe5d2596c92277f8f47a7b38b5071effbef2abae Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Tue, 3 Mar 2026 20:32:07 -0500 Subject: [PATCH] Improve season row UX: hover-reveal watch buttons, relocate counter Replace progress bar with watch/unwatch buttons on desktop hover. Move episode counter to the right side next to progress bar. Rename "Mark all"/"Unmark all" to "Watch all"/"Unwatch all". Co-Authored-By: Claude Opus 4.6 --- .../titles/[id]/_components/title-seasons.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/app/(pages)/titles/[id]/_components/title-seasons.tsx b/app/(pages)/titles/[id]/_components/title-seasons.tsx index 1d881b6..da54f90 100644 --- a/app/(pages)/titles/[id]/_components/title-seasons.tsx +++ b/app/(pages)/titles/[id]/_components/title-seasons.tsx @@ -114,15 +114,12 @@ export function TitleSeasons() { setOpenSeason(isOpen ? null : season.seasonNumber); } }} - className="flex w-full cursor-pointer items-center justify-between p-4 text-left transition-colors hover:bg-accent/50" + className="group/season flex w-full cursor-pointer items-center justify-between p-4 text-left transition-colors hover:bg-accent/50" >
{season.name ?? `Season ${season.seasonNumber}`} - - {watchedCount}/{totalCount} -
{totalCount > 0 && ( @@ -130,7 +127,7 @@ export function TitleSeasons() { {Math.round(progressPercent)}% -
+
@@ -142,9 +139,9 @@ export function TitleSeasons() { e.stopPropagation(); handleMarkSeason(season); }} - className="rounded-md px-2 py-1 text-[10px] font-medium uppercase tracking-wider text-primary transition-colors hover:bg-primary/10" + className="w-24 rounded-md px-2 py-1 text-center text-[10px] font-medium uppercase tracking-wider text-primary transition-colors hover:bg-primary/10 sm:hidden sm:group-hover/season:block" > - Mark all + Watch all )} {totalCount > 0 && watchedCount === totalCount && ( @@ -154,11 +151,16 @@ export function TitleSeasons() { e.stopPropagation(); handleUnmarkSeason(season); }} - className="rounded-md px-2 py-1 text-[10px] font-medium uppercase tracking-wider text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive" + className="w-24 rounded-md px-2 py-1 text-center text-[10px] font-medium uppercase tracking-wider text-muted-foreground transition-colors hover:bg-destructive/10 hover:text-destructive sm:hidden sm:group-hover/season:block" > - Unmark all + Unwatch all )} + {totalCount > 0 && ( + + {watchedCount}/{totalCount} + + )} {isOpen ? ( ) : (