Follow the user's preference for poster type in the Latest section (#1519)
This commit is contained in:
parent
0f748f2376
commit
ded2314878
|
@ -6,6 +6,7 @@
|
|||
// Copyright (c) 2025 Jellyfin & Jellyfin Contributors
|
||||
//
|
||||
|
||||
import Defaults
|
||||
import JellyfinAPI
|
||||
import SwiftUI
|
||||
|
||||
|
@ -13,6 +14,9 @@ extension HomeView {
|
|||
|
||||
struct LatestInLibraryView: View {
|
||||
|
||||
@Default(.Customization.latestInLibraryPosterType)
|
||||
private var latestInLibraryPosterType
|
||||
|
||||
@EnvironmentObject
|
||||
private var router: HomeCoordinator.Router
|
||||
|
||||
|
@ -23,7 +27,7 @@ extension HomeView {
|
|||
if viewModel.elements.isNotEmpty {
|
||||
PosterHStack(
|
||||
title: L10n.latestWithString(viewModel.parent?.displayTitle ?? .emptyDash),
|
||||
type: .portrait,
|
||||
type: latestInLibraryPosterType,
|
||||
items: viewModel.elements
|
||||
)
|
||||
.onSelect { item in
|
||||
|
|
Loading…
Reference in New Issue