From d4c1ae44b4ae34497b9053e39a98e306818037e0 Mon Sep 17 00:00:00 2001 From: lashman Date: Mon, 13 Apr 2026 20:23:45 +0300 Subject: [PATCH] discover page fixes: hero fills full width with mx-7 margins, chip glow unclipped, no section collapse on tab switch --- src/components/discover/DecadeStrip.tsx | 4 ++-- src/components/discover/MoodChips.tsx | 3 ++- src/components/discover/TonightHero.tsx | 5 ++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/discover/DecadeStrip.tsx b/src/components/discover/DecadeStrip.tsx index 787d763..7c14d76 100644 --- a/src/components/discover/DecadeStrip.tsx +++ b/src/components/discover/DecadeStrip.tsx @@ -50,7 +50,7 @@ export default function DecadeStrip({ kind, active, onChange }: Props) { By decade -
+
    {DECADES.map(d => ( d.label === active)!} diff --git a/src/components/discover/MoodChips.tsx b/src/components/discover/MoodChips.tsx index fad0b33..887beec 100644 --- a/src/components/discover/MoodChips.tsx +++ b/src/components/discover/MoodChips.tsx @@ -23,7 +23,7 @@ export function MoodChips({ activeId, onChange, kind }: Props) { In the mood for
-
+
    {DISCOVER_MOODS.map(mood => { const available = kind === 'movie' ? !!mood.movieParams : !!mood.tvParams @@ -98,6 +98,7 @@ export function MoodRow({ moodId, kind }: { moodId: string; kind: 'movie' | 'tv' animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -6 }} transition={{ duration: 0.28, ease: [0.16, 1, 0.3, 1] }} + className="min-h-[200px]" > {kind === 'movie' && } {kind === 'tv' && mood.tvParams && } diff --git a/src/components/discover/TonightHero.tsx b/src/components/discover/TonightHero.tsx index 85baa9e..705c74b 100644 --- a/src/components/discover/TonightHero.tsx +++ b/src/components/discover/TonightHero.tsx @@ -105,8 +105,7 @@ export default function TonightHero({ kind }: Props) { initial={{ opacity: 0, y: 12 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.55, ease: [0.16, 1, 0.3, 1] }} - className="mb-9 relative rounded-2xl overflow-hidden ring-1 ring-border bg-elevated/40 shadow-[0_24px_48px_-16px_rgba(0,0,0,0.65)]" - style={{ aspectRatio: '21/9', maxHeight: '440px' }} + className="mx-7 mb-9 relative rounded-2xl overflow-hidden ring-1 ring-border bg-elevated/40 shadow-[0_24px_48px_-16px_rgba(0,0,0,0.65)] h-[200px] sm:h-[240px] md:h-[300px] lg:h-[380px] xl:h-[440px]" > -
    +