Skip to content

Commit

Permalink
Reduce padding for schedule detail on today screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jevonmao committed Oct 15, 2021
1 parent 4f0b557 commit e320fc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ struct TodayHeroView: View {
.font(.title2)
.textAlign(.leading)
.padding(.bottom, 10)
ScheduleDetailView(scheduleDay: scheduleViewViewModel.currentDaySchedule)
ScheduleDetailView(scheduleDay: scheduleViewViewModel.currentDaySchedule,
horizontalPadding: false)
}

AnnoucementBanner(viewModel: todayViewViewModel)

}
.padding(.horizontal, 23)
.padding(.horizontal)
}
.padding(.top, (shouldShowTeams && todayViewViewModel.showTeamsBanner) ? 54 : 80)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ struct ScheduleDetailView: View {
return formattedDate
}

var horizontalPadding = true

var body: some View {
ScrollView {
if userSettings.preferLegacySchedule {
Expand Down Expand Up @@ -118,7 +120,7 @@ struct ScheduleDetailView: View {
PeriodBlockItem(block: period8)
}
}
.padding(.horizontal)
.padding(.horizontal, horizontalPadding ? 16 : 0)
}
}
.navigationTitle(scheduleDateDescription)
Expand Down

0 comments on commit e320fc1

Please sign in to comment.