mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Fix further PR remarks
This commit is contained in:
parent
4e9ed93def
commit
45f27e611c
3 changed files with 6 additions and 9 deletions
|
@ -71,12 +71,7 @@ struct AuthenticationChoosePasswordScreen: View {
|
|||
/// The text field and submit button where the user enters an email address.
|
||||
var form: some View {
|
||||
VStack(alignment: .leading, spacing: 12) {
|
||||
if #available(iOS 15.0, *) {
|
||||
textField
|
||||
.onSubmit(submit)
|
||||
} else {
|
||||
textField
|
||||
}
|
||||
textField
|
||||
|
||||
HStack(alignment: .center, spacing: 8) {
|
||||
Toggle(VectorL10n.authenticationChoosePasswordSignoutAllDevices, isOn: $viewModel.signoutAllDevices)
|
||||
|
|
|
@ -41,7 +41,8 @@ struct AuthenticationForgotPasswordScreen: View {
|
|||
|
||||
if viewModel.viewState.hasSentEmail {
|
||||
waitingFooter
|
||||
.padding(.bottom, geometry.safeAreaInsets.bottom > 0 ? 20 : 36)
|
||||
.padding(.bottom, OnboardingMetrics.actionButtonBottomPadding)
|
||||
.padding(.bottom, geometry.safeAreaInsets.bottom > 0 ? 0 : 16)
|
||||
.padding(.horizontal, 16)
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +91,7 @@ struct AuthenticationForgotPasswordScreen: View {
|
|||
|
||||
/// The footer shown whilst waiting for the user to tap the link in the email.
|
||||
var waitingFooter: some View {
|
||||
VStack(spacing: 14) {
|
||||
VStack(spacing: 12) {
|
||||
Button(action: done) {
|
||||
Text(VectorL10n.done)
|
||||
}
|
||||
|
@ -100,6 +101,7 @@ struct AuthenticationForgotPasswordScreen: View {
|
|||
Button { viewModel.send(viewAction: .resend) } label: {
|
||||
Text(VectorL10n.authenticationForgotPasswordWaitingButton)
|
||||
.font(theme.fonts.body)
|
||||
.padding(.vertical, 12)
|
||||
.multilineTextAlignment(.center)
|
||||
}
|
||||
.accessibilityIdentifier("resendButton")
|
||||
|
|
|
@ -32,7 +32,7 @@ struct OnboardingBreakerScreenBackground: View {
|
|||
}
|
||||
|
||||
/// The background gradient used with light mode.
|
||||
let gradient = Gradient (colors: Constants.gradientColors)
|
||||
let gradient = Gradient(colors: Constants.gradientColors)
|
||||
|
||||
init(_ isGradientEnabled: Bool = true) {
|
||||
self.isGradientEnabled = isGradientEnabled
|
||||
|
|
Loading…
Reference in a new issue