summaryrefslogtreecommitdiff
path: root/Jel/Views/Dashboard/Library/LibraryIconView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Jel/Views/Dashboard/Library/LibraryIconView.swift')
-rw-r--r--Jel/Views/Dashboard/Library/LibraryIconView.swift10
1 files changed, 7 insertions, 3 deletions
diff --git a/Jel/Views/Dashboard/Library/LibraryIconView.swift b/Jel/Views/Dashboard/Library/LibraryIconView.swift
index c4dbde0..0131ff7 100644
--- a/Jel/Views/Dashboard/Library/LibraryIconView.swift
+++ b/Jel/Views/Dashboard/Library/LibraryIconView.swift
@@ -22,6 +22,10 @@ struct LibraryIconView: View {
AsyncImageView(imageId: library.id ?? "",
blurhash: library.imageBlurHashes?.primary?[library.imageTags?["Primary"] ?? ""] ?? "",
imageType: "Primary")
+ .aspectRatio(contentMode: .fill)
+ .frame(width: 255, height: 150)
+ .clipShape(RoundedRectangle(cornerRadius: 5))
+
Text(library.name ?? "Unknown")
.font(.subheadline)
@@ -29,6 +33,6 @@ struct LibraryIconView: View {
}
}
-#Preview {
- LibraryIconView(library: BaseItemDto())
-}
+//#Preview {
+// LibraryIconView(library: BaseItemDto())
+//}