summaryrefslogtreecommitdiff
path: root/Jel/Views/Dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'Jel/Views/Dashboard')
-rw-r--r--Jel/Views/Dashboard/DashboardLibraryView.swift4
-rw-r--r--Jel/Views/Dashboard/DashboardSectionTitleView.swift1
-rw-r--r--Jel/Views/Dashboard/DashboardView.swift10
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 {