Skip to content

Commit

Permalink
Merge pull request #2373 from CruGlobal/GT-2465-Resume-Lesson-Buttons
Browse files Browse the repository at this point in the history
GT-2465 Resume Lesson Modal - make button stack vertically
  • Loading branch information
rachaelblue authored Dec 19, 2024
2 parents 24b5baf + 8396c2d commit e20b376
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct ResumeLessonProgressModal: View {

private let buttonHeight: CGFloat = 48
private let modalInset: CGFloat = 28
private let buttonInset: CGFloat = 20
private let buttonInset: CGFloat = 40
private let buttonSpace: CGFloat = 12

@ObservedObject private var viewModel: ResumeLessonProgressModalViewModel
Expand All @@ -25,8 +25,8 @@ struct ResumeLessonProgressModal: View {
GeometryReader { geometry in
let totalSpaceAroundModal = modalInset * 2
let modalWidth = geometry.size.width - totalSpaceAroundModal
let totalSpaceAroundButtons = (buttonInset * 2) + buttonSpace
let buttonWidth = (modalWidth - totalSpaceAroundButtons) / 2
let totalSpaceAroundButtons = buttonInset * 2
let buttonWidth = (modalWidth - totalSpaceAroundButtons)

ZStack {
Color.clear
Expand All @@ -44,10 +44,10 @@ struct ResumeLessonProgressModal: View {
.font(FontLibrary.sfProTextRegular.font(size: 16))
.foregroundColor(ColorPalette.gtGrey.color)
.multilineTextAlignment(.center)
.padding(.horizontal, buttonInset + 20)
.padding(.horizontal, buttonInset)
.padding(.bottom, 35)

HStack(spacing: buttonSpace) {
VStack(spacing: buttonSpace) {
GTWhiteButton(title: viewModel.interfaceStringsDomainModel.startOverButtonText, fontSize: 15, width: buttonWidth, height: buttonHeight) {
viewModel.startOverButtonTapped()
}
Expand Down

0 comments on commit e20b376

Please sign in to comment.