Skip to content

Commit

Permalink
Merge pull request #47 from edx/reduce-grid-spacing
Browse files Browse the repository at this point in the history
style: reduce grid spacing
  • Loading branch information
rnr authored Jul 30, 2024
2 parents 8ba9d41 + dddebf2 commit 5dee54c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dashboard/Dashboard/Presentation/AllCoursesView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public struct AllCoursesView: View {
.disabled(viewModel.fetchInProgress)
.frameLimit(width: proxy.size.width)
if let myEnrollments = viewModel.myEnrollments {
LazyVGrid(columns: columns(), spacing: 15) {
LazyVGrid(columns: columns(), spacing: 0) {
ForEach(
Array(myEnrollments.courses.enumerated()),
id: \.offset
Expand Down Expand Up @@ -172,13 +172,13 @@ public struct AllCoursesView: View {
private func columns() -> [GridItem] {
isHorizontal || idiom == .pad
? [
GridItem(.flexible()),
GridItem(.flexible()),
GridItem(.flexible())
GridItem(.flexible(), spacing: 0),
GridItem(.flexible(), spacing: 0),
GridItem(.flexible(), spacing: 0)
]
: [
GridItem(.flexible()),
GridItem(.flexible())
GridItem(.flexible(), spacing: 0),
GridItem(.flexible(), spacing: 0)
]
}

Expand Down

0 comments on commit 5dee54c

Please sign in to comment.