mirror of
https://github.com/jellyfin/Swiftfin.git
synced 2025-03-02 12:05:33 +00:00
Some cleanup
This commit is contained in:
parent
2006353c60
commit
0393347358
@ -67,6 +67,7 @@ struct ItemLandscapeMainView: View {
|
||||
// MARK: ItemViewBody
|
||||
if let episodeViewModel = viewModel as? SeasonItemViewModel {
|
||||
CardVStackView(items: episodeViewModel.episodes)
|
||||
.frame(maxWidth: 400)
|
||||
} else {
|
||||
ItemViewBody()
|
||||
.environmentObject(viewModel)
|
||||
|
@ -22,7 +22,7 @@ struct ItemPortraitMainView: View {
|
||||
|
||||
// MARK: portraitHeaderView
|
||||
var portraitHeaderView: some View {
|
||||
ImageView(src: viewModel.item.getBackdropImage(maxWidth: UIDevice.current.userInterfaceIdiom == .pad ? 622 : Int(UIScreen.main.bounds.width)),
|
||||
ImageView(src: viewModel.item.getBackdropImage(maxWidth: Int(UIScreen.main.bounds.width)),
|
||||
bh: viewModel.item.getBackdropImageBlurHash())
|
||||
.opacity(0.4)
|
||||
.blur(radius: 2.0)
|
||||
@ -54,7 +54,7 @@ struct ItemPortraitMainView: View {
|
||||
ParallaxHeaderScrollView(header: portraitHeaderView,
|
||||
staticOverlayView: portraitStaticOverlayView,
|
||||
overlayAlignment: .bottomLeading,
|
||||
headerHeight: UIDevice.current.userInterfaceIdiom == .pad ? 350 : UIScreen.main.bounds.width * 0.5625) {
|
||||
headerHeight: UIScreen.main.bounds.width * 0.5625) {
|
||||
|
||||
VStack {
|
||||
Spacer()
|
||||
@ -64,7 +64,6 @@ struct ItemPortraitMainView: View {
|
||||
Spacer()
|
||||
CardVStackView(items: episodeViewModel.episodes)
|
||||
.padding(.top, 5)
|
||||
.frame(maxWidth: UIDevice.current.userInterfaceIdiom == .pad ? 400 : .infinity)
|
||||
} else {
|
||||
ItemViewBody()
|
||||
.environmentObject(viewModel)
|
||||
|
Loading…
x
Reference in New Issue
Block a user