Skip to content

[bug] Detail pages wrap content and lag during resize and nested navigation #804

Closed

Description

@blurbery

What happened

I reproduced several connected detail-page problems on a real Docker deployment:

  1. A season with many episodes wrapped its cards into extra rows. That made the section taller and could push or clip the compact hero's breadcrumb, title, metadata, and actions.
  2. Detail-heavy TV show, season, episode, and movie pages made Brave's own browser-chrome sidebar animation, the resulting viewport resize, page scrolling, and pointer movement visibly laggy. Home stayed smooth under the same interaction. Lanterns was one repeatable stress case, not the only affected title.
  3. Opening a season from a series and pressing Back felt shorter and more jagged than opening a movie/show from Home and returning to Home. Destination cards and text appeared during the last frames, and the earlier history handling had also allowed a Series/Season Back loop.

The target is the Season 4-style layout: a complete hero, one horizontal episode row, retained hero/background artwork, smooth browser viewport changes, and the same navigation motion in both directions.

Broken: 12-episode view

A 12-episode season page with the hero title clipped above the viewport and episode cards wrapping into another row

Desired: Season 4 layout

The desired Season 4 layout with the complete compact hero and one horizontal episode row

Steps to reproduce

Season layout

  1. Open a multi-season series in the Web UI.
  2. Open a season with about 12 episodes.
  3. Observe the episode cards wrapping and compare the hero with the Season 4 reference above.

Browser-sidebar lag

  1. Open Home in Brave and open/close Brave's built-in browser sidebar while scrolling.
  2. Repeat across multiple TV show, season, episode, and movie detail pages. Include a one-season series such as Lanterns, where episodes render directly on the series view.
  3. Scroll and move the pointer quickly over cards and controls while the content viewport is narrow.

Nested transition

  1. From Home, open a movie/show and press Back to establish the working transition.
  2. Open a multi-season series, choose a season, and press the page Back button.
  3. Compare route commit, page motion, and when the destination cards/text become visible.
  4. Repeat Back/forward navigation and confirm the browser returns to the correct history entries without looping between Series and Season.

Expected behavior

  • Season episodes remain in one horizontal carousel with the existing pointer, touch, wheel, keyboard, and arrow controls.
  • Blank carousel track space uses the normal cursor; only interactive items use the pointer.
  • Compact heroes grow for long content and retain hero/background artwork.
  • Home and detail pages remain responsive while browser chrome changes the content viewport, while scrolling, and during rapid pointer movement.
  • Series → Season and Season → Series use the same 196px, 300ms, cubic-bezier(0.32, 0.72, 0, 1) compositor behavior as Home's detail transition, including the same lightweight-shell handoff.
  • Reduced-motion users get immediate navigation, unsupported browsers fall back safely, and browser history remains correct.

Environment

  • Deployment: Docker, signed-in production Web UI
  • Browsers/coverage: Brave reproduction; Google Chrome DevTools MCP/CDP profiling; desktop responsive widths and 390×844 mobile/touch emulation
  • Affected examples: Home baseline; multiple TV shows, seasons, episodes, and movie detail pages; Lanterns; Silo multi-season series and seasons; forward navigation; and Back
  • Fixed deployment: build-106 / revision 43d8c1c9, immutable digest sha256:23bd683f73e71c156ba2d08c795a6d993d39a24a5da972242e626bff5cad0098

Relevant logs

no application or browser errors were observed — this was a rendering, compositing, layout, and navigation-timing issue measured with Chrome DevTools traces

Technical notes

Google Chrome DevTools responsive-width traces isolated two different causes:

  • Lanterns' clipped Embla episode track and cards were repeatedly included in document paint during browser-chrome viewport animation. Viewport/card containment reduced episode-track paint by 39.1%, total Paint by 16.6%, and the largest graphics-pipeline slice by 75.1% without removing artwork.
  • The nested transition initially used the right CSS values but expanded the destination tree during the final frames. Holding the 96-element shell through the full motion removed a 114.6ms frame gap; both directions then stayed below 20ms per frame in the measured run.
  • Back navigation now distinguishes native history traversal from ordinary links. A real POP can accept the browser's actual entry when stored provenance is unavailable, but push/replace navigation still waits for its exact route so a stale intermediate commit cannot clear or finish the intended animation. The season error state uses the same history-reuse/direct-entry-replace behavior as the normal header Back action.

The corresponding upstream implementation is in #805. Related upstream foundations are #504 and #540. Fork implementation history is linked in the PR description.

AI Disclosure

  • Tool(s): OpenAI Codex desktop
  • Model(s): GPT-5
  • Involvement: AI-assisted — I reproduced the bugs, directed the investigation, set the acceptance criteria, tested and approved the production behavior, and reviewed the final result. Codex assisted with Chrome DevTools profiling, implementation, tests, commands, upstream-port review, and drafting.
  • Adversarial review: The final upstream diff was independently reviewed against current upstream and the production fork for navigation/history regressions, reduced-motion and browser fallbacks, carousel layout and cursor behavior, retained quick actions, and accidental fork-only changes. Findings were resolved before publication.

Confirmations

  • I reproduced this myself on a real deployment.
  • The measurements above came from real Chrome DevTools traces and direct interaction checks.
  • No application logs were available because no application error occurred.

Activity

  1. changed the title [-][bug] Season detail pages wrap episodes and clip compact heroes[/-] [+][bug] Detail pages wrap content and lag during resize and nested navigation[/+] on Aug 28, 2026
  2. added a commit that references this issue on Aug 28, 2026
    c9807c5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions