feat(ui): E31 S4c — the channel header folds, the Plex pages fill their hero, the player gets a side panel

- Channel page: the banner and identity block fold away once the grid scrolls
  (ui/scrollFold: folds past 32px only if the page can stay scrolled, unfolds
  at the very top) and the name rides in the tab row. One Back button in both
  states keeps its focus; folded at a tablet width the actions wrap instead of
  pushing the page sideways.
- Plex movie and show pages: the TMDB facts over the key crew are the hero's
  second column (plexDetailAside), the keywords sit under the text; the show
  page shows them for the first time, with the same three toggles. A
  collection's hero is sized to its text.
- YouTube player, 1280px and wider: the title, channel, actions, description
  and queue sit in a side panel beside the video, which takes the window's
  height (1438x809 at 1920x911, was ~1008 wide). The wheel scrolls that panel
  while it can and turns the volume elsewhere.
- DESIGN.md decision log: the keywords' place under the text.
This commit is contained in:
2026-10-02 02:13:17 +02:00
parent 98d0ca6eeb
commit 78fdcda6bb
16 changed files with 1526 additions and 867 deletions
+22
View File
@@ -34,12 +34,14 @@ import {
Filterable,
WatchedToggle,
} from "./plexDetailUi";
import { DetailAside, DetailAsideToggles, DetailKeywords } from "./plexDetailAside";
import {
epLabel,
seasonTitle,
tmdbBackdropUrl,
useCrossfadeBackdrop,
useDetailPrefs,
useDetailAside,
} from "../lib/plexDetail";
import { CastStrip, EpisodeCard, PlexPosterCard, RelatedStrip, SeasonCard } from "./plexCards";
import { PlexMenu } from "./PlexMenu";
@@ -449,6 +451,8 @@ export function PlexShowView({
toggleRelated,
toggleCrossfade,
} = useDetailPrefs();
// The facts / keywords / crew (E31): TMDB enriches shows too, and the page showed none of it.
const aside = useDetailAside(show ?? {});
useCrossfadeBackdrop(
[
show?.art,
@@ -554,8 +558,19 @@ export function PlexShowView({
showRelated={showRelated}
onToggleRelated={toggleRelated}
hasRelated={d.related.length > 0}
extra={<DetailAsideToggles aside={aside} />}
/>
}
aside={
aside.column && (
<DetailAside
facts={show}
shown={aside.shown}
onFilter={onFilter}
onOpenPerson={onOpenPerson}
/>
)
}
>
<PageHeading className="text-2xl font-semibold leading-tight">{show.title}</PageHeading>
{/* The same meta row as the media-info page: filtering values are chips, plain facts flat
@@ -677,6 +692,13 @@ export function PlexShowView({
/>
)}
</div>
{aside.shown.keywords && (
<DetailKeywords
keywords={show.tmdb?.keywords ?? []}
onFilter={onFilter}
className="mt-5"
/>
)}
</DetailHero>
{/* Seasons — in a glassy panel like the movie info-page strips. */}