Repository navigation
fix(web): show the whole season row on series detail pages - #1717
Conversation
On desktop the series detail page is locked to the screen height and the season row only got what the hero left, with a 16rem floor. A row of season cards needs about 21rem, so the row scrolled internally and cut off the season titles and episode counts. Mark the multi-season navigation as a season rail and size it to its content. On desktop the viewport now grows past the screen when the hero and the rail do not both fit, so the page scrolls instead of either region. Single-season episode grids keep their bounded, scrolling layout.
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Quick104
left a comment
There was a problem hiding this comment.
Reviewed with gpt-6.1-sol in T3 Code using the Codex provider.
The short desktop layout keeps the viewport height-bounded and pins the navigation to its bottom edge. A content-sized rail taller than that space grew past the top of the page, out of reach. Cap it at the available height and let it scroll there.
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Since #1012, season pages and single-season series pages placed the episode grid in the viewport-bounded band under the hero, which gets at most min(22rem, 40%) of the window. On a 1641x778 desktop window that left about one row visible inside a small scroll box, instead of the four-row cap from #804. The band suits a one-row rail, not a grid that is the page's main content. #1717 already moved the season rail out of it on desktop: the page fills the screen and grows past it when the hero and navigation don't both fit. Apply that rule to every series and season page, so the episode grid flows below a content-sized hero and useGridRowCap limits it to four rows again. The episode page, short desktop windows and phones keep the bounded layout. Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Problem
Related issue: #1249
Validation tasks: changes #1252 C7, C8
On desktop, a series with more than one season can show its season row with a vertical scrollbar that cuts off the bottom of the cards, hiding each season's title and episode count. It happens whenever the hero (poster, overview, actions) is tall enough that the space left in the window is shorter than the row.
The series detail viewport is locked to the window height. The season navigation gets whatever the hero leaves, with a 16rem floor, and scrolls when that is too short. A row of season cards needs about 21rem.
Approach
The multi-season navigation now carries a
series-detail-railclass and is sized to its content. In the short desktop layout, where the rail sits beside the hero, it is capped at the window height and scrolls only when it is taller than that. On desktop, a viewport with the rail fills the window but grows past it when the hero and the rail do not both fit, so the page scrolls instead of either region. When both fit, the layout is unchanged.Letting the page grow makes the hero content-sized, where the hero poster's
height: min(330px, 100%)has no height to resolve against and inflated the hero. These pages pin the poster to 330px instead.Squeezing the hero rather than growing the page would only move the scrollbar into the overview text. Single-season series and season pages list episodes in a grid that is meant to scroll, so they keep the bounded layout.
Validation
web/src/pages/ItemDetailpass. A new test checks that only the multi-season layout gets the rail class.tscare clean on the changed files.Risks
On desktop, pages with the season rail no longer match the
detail-viewportcontainer query, which only tightens hero padding and the action bar's height limit on short windows. A media query already applies the same padding, and the action bar no longer needs the height limit once the page can grow.Checklist
AI Disclosure
Note
Fix series detail pages to show the whole season navigation rail
SeriesContentnow adds aseries-detail-railclass to the seasons navigation only when the series is not single-season, so the full rail is visible instead of clippedMacroscope summarized ef7cad4.