Files
sofa/app/(pages)/dashboard/_components/continue-watching-list.tsx
T
jake 69f04937bc Fix updateTag during render, hide scrollbars, polish type badge and hover styles
- Add `revalidate` option to `refreshCredits` and `refreshRecommendations`;
  pass `{ revalidate: false }` from `ensureEnriched` to avoid calling
  `updateTag` outside Server Actions/Route Handlers
- Add `hideScrollbar` prop to all horizontal ScrollArea instances
  (continue-watching, title rows, filterable row, cast carousel)
- Replace text-only type badge in HeroBanner with icon + label using
  IconMovie / IconDeviceTv
- Fix StatusButton destructive hover overrides with `!important` so
  they correctly supersede the status-specific background/text/ring
2026-03-08 11:24:07 -04:00

33 lines
831 B
TypeScript

import { ScrollArea } from "@/components/ui/scroll-area";
import {
ContinueWatchingCard,
type ContinueWatchingItemProps,
} from "./continue-watching-card";
export function ContinueWatchingList({
items,
}: {
items: ContinueWatchingItemProps[];
}) {
return (
<ScrollArea
scrollFade
hideScrollbar
className="-mx-4 sm:-mx-0 [&_[data-slot=scroll-area-content]]:px-px"
>
<div className="flex gap-4 px-4 py-2 sm:px-0">
{items.map((item, i) => (
<div key={item.title.id} className="shrink-0">
<div
className="animate-stagger-item"
style={{ "--stagger-index": i } as React.CSSProperties}
>
<ContinueWatchingCard item={item} />
</div>
</div>
))}
</div>
</ScrollArea>
);
}