From 568b4d6126e1408e8e16417f22370a4ced44d105 Mon Sep 17 00:00:00 2001 From: Shav Kinderlehrer Date: Fri, 22 Dec 2023 19:29:07 -0500 Subject: Implement library view --- Jel/Views/Dashboard/Library/LibraryIconView.swift | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Jel/Views/Dashboard/Library/LibraryIconView.swift') 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()) +//} -- cgit v1.2.3