Fix hero poster pinned to top in EnhancedShowEpisodesView

Co-authored-by: scigward <162128369+scigward@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-20 10:59:52 +00:00
parent a8b7728281
commit a17cd250bb

View file

@ -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()
}
}