Skip to content

fix(web): show the whole season row on series detail pages - #1717

Merged
Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/season-row-scrollbar
Oct 1, 2026
Merged

Quick104 merged 2 commits into
Silo-Server:mainfrom
Rhainland:fix/season-row-scrollbar

Conversation

@Rhainland

@Rhainland Rhainland commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

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-rail class 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 unit tests for web/src/pages/ItemDetail pass. A new test checks that only the multi-season layout gets the rail class.
  • ESLint, Prettier and tsc are clean on the changed files.
  • Checked in a browser against a local server with a 2-season and a 7-season series. At 1600×800 the season row and hero show in full with no inner scrollbars, and the page scrolls by 62px. At 1920×1080 everything fits in the window as before. At 1280×600 (side-by-side layout) and at phone width the season cards show in full. Removing the class in the same page reproduces the bug: a 256px region holding 336px of content.

Risks

On desktop, pages with the season rail no longer match the detail-viewport container 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

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code; GitHub CLI
  • Model(s): claude-opus-5-5[1m]
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: A medium-effort review of the full diff by a separate Claude Code agent checked CSS precedence at each breakpoint and the single-season path. It found no bugs; the container-query side effect it noted is described under Risks.

Note

Fix series detail pages to show the whole season navigation rail

  • SeriesContent now adds a series-detail-rail class to the seasons navigation only when the series is not single-season, so the full rail is visible instead of clipped

Macroscope summarized ef7cad4.

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.
@kody-ai

kody-ai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 706f6a57-aeea-493b-941f-25a5015741a5

📥 Commits

Reviewing files that changed from the base of the PR and between 17eced4 and ef7cad4.

📒 Files selected for processing (3)
  • web/src/pages/ItemDetail/SeriesContent.test.tsx
  • web/src/pages/ItemDetail/SeriesContent.tsx
  • web/src/pages/ItemDetail/detailLayout.css
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Quick104 Quick104 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@kody-ai

kody-ai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Code Review Completed! 🔥

The code review was successfully completed based on your current configurations.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the `@kody start-review` command at the root of your PR.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Providing Context (Files & MCPs)

Add these hints in your PR description (or a comment) to unlock deeper checks:

  • Ticket / Acceptance Criteria: `Refs: ABC-123` (Linear/Jira/Asana/ClickUp/Trello) or a direct ticket link.
  • Bugfix Validation: a Sentry/Datadog/Bugsnag event link (or paste the stack trace/error message).
  • Endpoint Risk: mention the route (e.g., `POST /api/payments`) or controller/action name.
  • Attach a repo file as context: use an explicit marker like `@file:docs/guide.mdx#L10-L50` (replace with your real path).
  • API Contract Docs: include `@file:openapi.yaml` or `@file:swagger.json` when changing routes/schemas.
  • Definition of Done / Standards: include `@file:DOD.md` or `@file:CONTRIBUTING.md` if your repo has them.
  • Design System Source of Truth: include `@file:ui/index.ts` (replace with your DS entrypoint path).
  • Feature Flags: include the flag key/name and `@file:flags.ts` / `@file:config.json` (and optionally the PostHog flag name).
  • Edge/CDN Rules: link the Cloudflare rule/zone or describe the intended redirect/header behavior.
  • Attach an MCP tool output: use `@mcp<provider|tool>` (replace with an installed MCP provider + tool, e.g., `@mcp<sentry|events.search>`).
Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

Access your configuration settings here.

@Quick104
Quick104 merged commit 375ab9e into Silo-Server:main Oct 1, 2026
14 checks passed
Quick104 added a commit that referenced this pull request Oct 3, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants