Skip to content

Commit

Permalink
fix customDeferralDropdownText truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
erikng committed Dec 29, 2022
1 parent 26680fa commit 4c34fcd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Nudge/UI/Common/QuitButtons.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ struct QuitButtons: View {
.padding(.leading, -200.0)
}
}
.frame(maxWidth:100, maxHeight: 30)
}
// primaryQuitButton
if viewObserved.requireDualQuitButtons == false || viewObserved.hasClickedSecondaryQuitButton {
HStack(spacing: 20) {
HStack {
if allowUserQuitDeferrals {
Menu(customDeferralDropdownText) {
Menu {
Button {
Utils().setDeferralTime(deferralTime: nudgeEventDate)
updateDeferralUI()
Expand Down Expand Up @@ -89,6 +90,10 @@ struct QuitButtons: View {
}
}
}
label: {
Text(customDeferralDropdownText)
}
.frame(maxWidth:215, maxHeight: 30)
} else {
Button {
Utils().userInitiatedExit()
Expand All @@ -104,7 +109,6 @@ struct QuitButtons: View {
}
}
}
.frame(maxWidth:100, maxHeight: 30)
}
}

Expand Down

0 comments on commit 4c34fcd

Please sign in to comment.