From a17cd250bb8e5aa320df2038b4772fec4cae8f69 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Feb 2026 10:59:52 +0000 Subject: [PATCH] Fix hero poster pinned to top in EnhancedShowEpisodesView Co-authored-by: scigward <162128369+scigward@users.noreply.github.com> --- Sora/Views/DownloadView.swift | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/Sora/Views/DownloadView.swift b/Sora/Views/DownloadView.swift index febc378..c64df14 100644 --- a/Sora/Views/DownloadView.swift +++ b/Sora/Views/DownloadView.swift @@ -1108,24 +1108,27 @@ struct EnhancedShowEpisodesView: View { @ViewBuilder private var heroImageSection: some View { - if let posterURL = group.posterURL { - LazyImage(url: posterURL) { state in - if let uiImage = state.imageContainer?.image { - Image(uiImage: uiImage) - .resizable() - .aspectRatio(contentMode: .fill) - } else { - placeholderGradient + VStack(spacing: 0) { + if let posterURL = group.posterURL { + LazyImage(url: posterURL) { state in + if let uiImage = state.imageContainer?.image { + Image(uiImage: uiImage) + .resizable() + .aspectRatio(contentMode: .fill) + } else { + placeholderGradient + } } - } - .ignoresSafeArea(.all) - .frame(maxWidth: .infinity, maxHeight: 400) - .clipped() - } else { - placeholderGradient .ignoresSafeArea(.all) .frame(maxWidth: .infinity, maxHeight: 400) .clipped() + } else { + placeholderGradient + .ignoresSafeArea(.all) + .frame(maxWidth: .infinity, maxHeight: 400) + .clipped() + } + Spacer() } }