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

+3 -2
View File
@@ -2,14 +2,15 @@ import movieAdvisor from '../clients/movieAdvisor';
import mapMoviesSeriesResponseToShows from '../dto/Show';
export type TrendingQueryProps = {
type: 'trending' | 'streaming' | 'theater' | 'apple' | 'netflix' | 'hbo';
type: 'trending' | 'streaming' | 'theater' | 'apple' | 'netflix' | 'hbo' | 'amazon';
enabled?: boolean;
};
const TV_WATCH_PROVIDERS: Partial<Record<TrendingQueryProps['type'], number>> = {
apple: 350,
netflix: 8,
hbo: 1899
hbo: 1899,
amazon: 9
};
const trendingQuery = ({ type, enabled }: TrendingQueryProps) => ({