summaryrefslogtreecommitdiff
path: root/Jel/Views/Dashboard/DashboardLibraryView.swift
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-12-27 08:25:35 -0500
committerShav Kinderlehrer <[email protected]>2023-12-27 08:25:35 -0500
commit7aa602f19dec3cf526c4550c5e63a8fc6dfac723 (patch)
treea4ee5ed0a5e8b9a40ad0ef5e98b1e65b8fd207cb /Jel/Views/Dashboard/DashboardLibraryView.swift
parentbd0b6ff491b33088a4db55c495b8aab797f0b22a (diff)
downloadjel-7aa602f19dec3cf526c4550c5e63a8fc6dfac723.tar.gz
jel-7aa602f19dec3cf526c4550c5e63a8fc6dfac723.zip
Implement auto aspect ratio for LibraryIconViews
Diffstat (limited to 'Jel/Views/Dashboard/DashboardLibraryView.swift')
-rw-r--r--Jel/Views/Dashboard/DashboardLibraryView.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/Jel/Views/Dashboard/DashboardLibraryView.swift b/Jel/Views/Dashboard/DashboardLibraryView.swift
index 57ffa50..4a68013 100644
--- a/Jel/Views/Dashboard/DashboardLibraryView.swift
+++ b/Jel/Views/Dashboard/DashboardLibraryView.swift
@@ -29,6 +29,7 @@ struct DashboardLibraryView: View {
LibraryDetailView(library: library)
} label: {
LibraryIconView(library: library, height: 150)
+ .setAspectRatio(library.primaryImageAspectRatio)
.padding()
}
.buttonStyle(PlainButtonStyle())