Skip to content

Commit

Permalink
actually fix simple-mode jumping and bottom button padding
Browse files Browse the repository at this point in the history
  • Loading branch information
erikng committed Aug 18, 2021
1 parent 83419b1 commit f5dd39e
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Nudge/UI/SimpleMode/SimpleMode.swift
Expand Up @@ -166,15 +166,18 @@ struct SimpleMode: View {
if allowButtons || Utils().demoModeEnabled() {
// secondaryQuitButton
if viewObserved.requireDualQuitButtons {
if self.hasClickedSecondaryQuitButton == false {
Button {
hasClickedSecondaryQuitButton = true
userHasClickedSecondaryQuitButton()
} label: {
Text(secondaryQuitButtonText)
HStack(spacing: 20) {
if self.hasClickedSecondaryQuitButton == false {
Button {
hasClickedSecondaryQuitButton = true
userHasClickedSecondaryQuitButton()
} label: {
Text(secondaryQuitButtonText)
}
.padding(.leading, -200.0)
}
.padding(.leading, -200.0)
}
.frame(maxHeight: 30)
}

// primaryQuitButton
Expand Down Expand Up @@ -245,7 +248,7 @@ struct SimpleMode: View {
}
}
.frame(width: 860)
.padding(.bottom, -20)
.padding(.bottom, -17.5)
}
.frame(width: 900, height: 450)
.onAppear() {
Expand Down

0 comments on commit f5dd39e

Please sign in to comment.