summaryrefslogtreecommitdiff
path: root/Jel/Views/Library/Item
diff options
context:
space:
mode:
Diffstat (limited to 'Jel/Views/Library/Item')
-rw-r--r--Jel/Views/Library/Item/ItemHeaderView.swift6
-rw-r--r--Jel/Views/Library/Item/ItemInfoView.swift6
2 files changed, 7 insertions, 5 deletions
diff --git a/Jel/Views/Library/Item/ItemHeaderView.swift b/Jel/Views/Library/Item/ItemHeaderView.swift
index 3930beb..b8a708a 100644
--- a/Jel/Views/Library/Item/ItemHeaderView.swift
+++ b/Jel/Views/Library/Item/ItemHeaderView.swift
@@ -21,18 +21,18 @@ struct ItemHeaderView: View {
var body: some View {
ZStack(alignment: .bottom) {
StickyHeaderView(minHeight: 300) {
- LibraryIconView(library: item, imageType: "Backdrop", contentMode: .fill)
+ ItemIconView(item: item, imageType: "Backdrop", contentMode: .fill)
.setCornerRadius(0)
.mask(overlayGradient)
.background {
- LibraryIconView(library: item, imageType: "Backdrop", contentMode: .fill)
+ ItemIconView(item: item, imageType: "Backdrop", contentMode: .fill)
.setCornerRadius(0)
.blur(radius: 50)
}
}
HStack {
- LibraryIconView(library: item, imageType: "Logo", width: 200, height: 100, placeHolder: AnyView(Text(item.name ?? "Unknown").font(.title).bold().truncationMode(.middle)))
+ ItemIconView(item: item, imageType: "Logo", width: 200, height: 100, placeHolder: AnyView(Text(item.name ?? "Unknown").font(.title).bold().truncationMode(.middle)))
.setCornerRadius(0)
.shadow(radius: 10)
.frame(alignment: .leading)
diff --git a/Jel/Views/Library/Item/ItemInfoView.swift b/Jel/Views/Library/Item/ItemInfoView.swift
index f682898..022fa71 100644
--- a/Jel/Views/Library/Item/ItemInfoView.swift
+++ b/Jel/Views/Library/Item/ItemInfoView.swift
@@ -21,8 +21,10 @@ struct ItemInfoView: View {
Text(item.genres?.first ?? "---")
.shadow(color: .black, radius: 1)
}
- Text(item.getRuntime() ?? "-:--")
- .shadow(color: .black, radius: 1)
+ if item.type == .movie {
+ Text(item.getRuntime() ?? "-:--")
+ .shadow(color: .black, radius: 1)
+ }
}
.font(.caption)
}