feat(trending): amazon tab, tab group divider and arrow-hover wheel scroll

- Amazon tab for the series trending row (TMDB provider 9, Amazon
  Prime Video US), lazy-loaded like Netflix/HBO
- Nav renders a divider before tabs flagged with 'divider', separating
  the trending group from Similar/Recommendations (no leading divider
  on the show-page preview)
- Vertical wheel now steps the row card-by-card only while hovering the
  prev/next arrow zones: deltas accumulate and a smooth scroll lands on
  the next/previous snap point, so mandatory snap never pulls back.
  Everywhere else the wheel scrolls the page as before
This commit is contained in:
ner committed 2026-09-24 16:25:35 +03:00
1 parent f22f3c45b4
commit 09aceccec9
5 files changed
+114 -22

No files matched your search

+12 -1
View File
@@ -39,6 +39,7 @@ const Trending: FC<Props> = ({ showId, showType, preview }) => {
const apple = useTrending({ type: 'apple', enabled: isSeries && !preview });
const netflix = useTrending({ type: 'netflix', enabled: isSeries && active.type === 'netflix' });
const hbo = useTrending({ type: 'hbo', enabled: isSeries && active.type === 'hbo' });
const amazon = useTrending({ type: 'amazon', enabled: isSeries && active.type === 'amazon' });
const similar = useSimilar({
showId,
showType,
@@ -52,7 +53,17 @@ const Trending: FC<Props> = ({ showId, showType, preview }) => {
enabled: active.type === 'recommendations'
});
const tab = { streaming, trending, theater, apple, netflix, hbo, similar, recommendations }[active.type]!;
const tab = {
streaming,
trending,
theater,
apple,
netflix,
hbo,
amazon,
similar,
recommendations
}[active.type]!;
return (
(streaming.isFetched || apple.isFetched || similar.isFetched) && (