diff options
author | Shav Kinderlehrer <[email protected]> | 2024-01-07 16:41:45 -0500 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2024-01-07 16:41:45 -0500 |
commit | 4d40b0c083fa78a90337273b83b44f450c3d3d9b (patch) | |
tree | 63b8c559f735609cef3b94518e2e4084408e1ea1 /Jel/Views/Dashboard | |
parent | a271314f15c30f59d84296a12aab280eda2d3c64 (diff) | |
download | jel-4d40b0c083fa78a90337273b83b44f450c3d3d9b.tar.gz jel-4d40b0c083fa78a90337273b83b44f450c3d3d9b.zip |
Use backdrop blurhash + rename LibraryIconView
Diffstat (limited to 'Jel/Views/Dashboard')
-rw-r--r-- | Jel/Views/Dashboard/DashboardLibraryView.swift | 4 | ||||
-rw-r--r-- | Jel/Views/Dashboard/DashboardSectionTitleView.swift | 1 | ||||
-rw-r--r-- | Jel/Views/Dashboard/DashboardView.swift | 10 |
3 files changed, 3 insertions, 12 deletions
diff --git a/Jel/Views/Dashboard/DashboardLibraryView.swift b/Jel/Views/Dashboard/DashboardLibraryView.swift index 7526dce..2a8dee1 100644 --- a/Jel/Views/Dashboard/DashboardLibraryView.swift +++ b/Jel/Views/Dashboard/DashboardLibraryView.swift @@ -28,12 +28,12 @@ struct DashboardLibraryView: View { NavigationLink { LibraryDetailView(library: library) } label: { - LibraryIconView(library: library, height: 150) + ItemIconView(item: library, height: 150) .setAspectRatio(library.primaryImageAspectRatio) } .buttonStyle(PlainButtonStyle()) } - } + }.padding(.horizontal) } } .onAppear { diff --git a/Jel/Views/Dashboard/DashboardSectionTitleView.swift b/Jel/Views/Dashboard/DashboardSectionTitleView.swift index 2456dc2..608458a 100644 --- a/Jel/Views/Dashboard/DashboardSectionTitleView.swift +++ b/Jel/Views/Dashboard/DashboardSectionTitleView.swift @@ -21,7 +21,6 @@ struct DashboardSectionTitleView: View { .bold() Spacer() } - .padding(.top) } } diff --git a/Jel/Views/Dashboard/DashboardView.swift b/Jel/Views/Dashboard/DashboardView.swift index 279f056..5ad25f8 100644 --- a/Jel/Views/Dashboard/DashboardView.swift +++ b/Jel/Views/Dashboard/DashboardView.swift @@ -20,17 +20,9 @@ struct DashboardView: View { } } header: { DashboardSectionTitleView("Libraries") - } - - Section { - NavigationStack { - DashboardLibraryView() - } - } header: { - DashboardSectionTitleView("Next up") + .padding([.top, .leading]) } } - .padding() } .navigationTitle("Home") .toolbar { |