From 5d1d64d8d89e5a5a69b0b6b51ca18d6afcc58944 Mon Sep 17 00:00:00 2001 From: 1xDed Date: Thu, 3 Dec 2026 11:48:50 +0300 Subject: [PATCH] fix(ui): use one backdrop on item pages Drop the extra sharp header backdrop layer on item details. The fixed app backdrop now covers the hero and the episode/content area, so scrolling never reveals a second background color. --- .../itemDetail/itemDetailLayout.tsx | 4 -- .../itemDetail/views/seriesView.tsx | 9 ----- src/components/itemHeader/index.tsx | 37 +------------------ 3 files changed, 1 insertion(+), 49 deletions(-) diff --git a/src/components/itemDetail/itemDetailLayout.tsx b/src/components/itemDetail/itemDetailLayout.tsx index 02d9535..12208ee 100644 --- a/src/components/itemDetail/itemDetailLayout.tsx +++ b/src/components/itemDetail/itemDetailLayout.tsx @@ -42,7 +42,6 @@ type ItemDetailLayoutProps = { /** CSS modifier, rendered as `item-`. */ variant: "default" | "episode" | "series" | "boxset" | "person"; mediaQualityInfo?: MediaQualityInfo; - backdropSrc?: string | null; /** Blurhash for the app backdrop; defaults to the item's (or an episode's series) backdrop. */ backdropHash?: string; /** Play button area; omitted for items that can't be played (people). */ @@ -61,7 +60,6 @@ const ItemDetailLayout = ({ item, variant, mediaQualityInfo, - backdropSrc, backdropHash, playButton, showTrailer = true, @@ -104,8 +102,6 @@ const ItemDetailLayout = ({ item={item} api={api} mediaQualityInfo={mediaQualityInfo} - scrollTargetRef={containerRef} - backdropSrc={backdropSrc} >
diff --git a/src/components/itemDetail/views/seriesView.tsx b/src/components/itemDetail/views/seriesView.tsx index ddc5803..87ce0cc 100644 --- a/src/components/itemDetail/views/seriesView.tsx +++ b/src/components/itemDetail/views/seriesView.tsx @@ -91,14 +91,6 @@ const SeriesView = ({ item }: { item: BaseItemDto }) => { const season = currentSeasonItem.data; const backdropOwner = season?.BackdropImageTags?.length ? season : item; const backdropTag = backdropOwner.BackdropImageTags?.[0]; - const backdropSrc = - api && backdropTag - ? getImageUrlsApi(api).getItemImageUrlById( - backdropOwner.Id ?? "", - "Backdrop", - { tag: backdropTag }, - ) - : undefined; const backdropHash = (backdropTag && backdropOwner.ImageBlurHashes?.Backdrop?.[backdropTag]) || ""; @@ -107,7 +99,6 @@ const SeriesView = ({ item }: { item: BaseItemDto }) => { ; children?: ReactNode; - backdropSrc?: string | null; } const ItemHeader = ({ item, api, mediaQualityInfo, - scrollTargetRef, children, - backdropSrc, }: ItemHeaderProps) => { const isEpisode = item.Type === "Episode"; // A runtime / "ends at" is meaningless for people and artists (it sums their whole catalogue) const showRuntime = item.Type !== "MusicArtist" && item.Type !== "Person"; - const backdropTag = - isEpisode && item.ParentBackdropImageTags?.length - ? item.ParentBackdropImageTags[0] - : item.BackdropImageTags?.[0]; - const backdropId = - isEpisode && item.ParentBackdropImageTags?.length - ? (item.ParentBackdropItemId ?? item.Id) - : item.Id; - const parentLogoImageTag = (item as any).ParentLogoImageTag || (item as any).ParentLogoImageTags?.[0]; const logoTag = @@ -94,26 +79,6 @@ const ItemHeader = ({ return (
-
- {scrollTargetRef && ( - - )} -